Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Converter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
Converter
Commits
5556bfbd
Commit
5556bfbd
authored
3 months ago
by
szeka.wong
Browse files
Options
Downloads
Patches
Plain Diff
Ruff and prettier
parent
641c8be4
No related branches found
No related tags found
1 merge request
!57
🔨✨ validator package does not assume a odoo.addons package name, provide full package name instead
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/schemas/product.schema.json
+1
-23
1 addition, 23 deletions
tests/schemas/product.schema.json
tests/schemas_dir/product.schema.json
+1
-23
1 addition, 23 deletions
tests/schemas_dir/product.schema.json
with
2 additions
and
46 deletions
tests/schemas/product.schema.json
+
1
−
23
View file @
5556bfbd
{
"$schema"
:
"https://json-schema.org/draft/2020-12/schema"
,
"$id"
:
"https://example.com/product.schema.json"
,
...
...
@@ -11,5 +10,4 @@
"type"
:
"object"
,
"properties"
:
{
"productId"
:
{
...
...
@@ -15,5 +13,4 @@
"productId"
:
{
"description"
:
"The unique identifier for a product"
,
"type"
:
"integer"
...
...
@@ -17,7 +14,6 @@
"description"
:
"The unique identifier for a product"
,
"type"
:
"integer"
},
"productName"
:
{
...
...
@@ -21,7 +17,6 @@
},
"productName"
:
{
"description"
:
"Name of the product"
,
"type"
:
"string"
...
...
@@ -25,7 +20,6 @@
"description"
:
"Name of the product"
,
"type"
:
"string"
},
"price"
:
{
...
...
@@ -29,9 +23,8 @@
},
"price"
:
{
"description"
:
"The price of the product"
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
...
...
@@ -33,9 +26,8 @@
"description"
:
"The price of the product"
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
},
"tags"
:
{
...
...
@@ -39,9 +31,8 @@
},
"tags"
:
{
"description"
:
"Tags for the product"
,
"type"
:
"array"
,
"items"
:
{
...
...
@@ -43,7 +34,6 @@
"description"
:
"Tags for the product"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
...
...
@@ -49,7 +39,6 @@
"type"
:
"string"
},
"minItems"
:
1
,
"uniqueItems"
:
true
...
...
@@ -51,7 +40,6 @@
},
"minItems"
:
1
,
"uniqueItems"
:
true
}
...
...
@@ -57,4 +45,3 @@
}
},
...
...
@@ -59,13 +46,4 @@
},
"required"
:
[
"productId"
,
"productName"
,
"price"
]
"required"
:
[
"productId"
,
"productName"
,
"price"
]
}
This diff is collapsed.
Click to expand it.
tests/schemas_dir/product.schema.json
+
1
−
23
View file @
5556bfbd
{
"$schema"
:
"https://json-schema.org/draft/2020-12/schema"
,
"$id"
:
"https://example.com/product.schema.json"
,
...
...
@@ -11,5 +10,4 @@
"type"
:
"object"
,
"properties"
:
{
"productId"
:
{
...
...
@@ -15,5 +13,4 @@
"productId"
:
{
"description"
:
"The unique identifier for a product"
,
"type"
:
"integer"
...
...
@@ -17,7 +14,6 @@
"description"
:
"The unique identifier for a product"
,
"type"
:
"integer"
},
"productName"
:
{
...
...
@@ -21,7 +17,6 @@
},
"productName"
:
{
"description"
:
"Name of the product"
,
"type"
:
"string"
...
...
@@ -25,7 +20,6 @@
"description"
:
"Name of the product"
,
"type"
:
"string"
},
"price"
:
{
...
...
@@ -29,9 +23,8 @@
},
"price"
:
{
"description"
:
"The price of the product"
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
...
...
@@ -33,9 +26,8 @@
"description"
:
"The price of the product"
,
"type"
:
"number"
,
"exclusiveMinimum"
:
0
},
"tags"
:
{
...
...
@@ -39,9 +31,8 @@
},
"tags"
:
{
"description"
:
"Tags for the product"
,
"type"
:
"array"
,
"items"
:
{
...
...
@@ -43,7 +34,6 @@
"description"
:
"Tags for the product"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
...
...
@@ -49,7 +39,6 @@
"type"
:
"string"
},
"minItems"
:
1
,
"uniqueItems"
:
true
...
...
@@ -51,7 +40,6 @@
},
"minItems"
:
1
,
"uniqueItems"
:
true
}
...
...
@@ -57,4 +45,3 @@
}
},
...
...
@@ -59,13 +46,4 @@
},
"required"
:
[
"productId"
,
"productName"
,
"price"
]
"required"
:
[
"productId"
,
"productName"
,
"price"
]
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment