@takeshape/schema 8.23.0 → 8.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/validate.js +1 -2
- package/examples/dependencies/fabric-ecommerce.json +9716 -0
- package/examples/dependencies/pruned-shopify-product-schema.json +9672 -0
- package/examples/dependencies/shopify-store-with-widget.json +9854 -0
- package/examples/dependencies/stripe-starter-resolved.json +27345 -0
- package/examples/latest/fabric-ecommerce.json +8901 -119
- package/examples/latest/pruned-shopify-product-schema.json +2835 -2496
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +4532 -4234
- package/examples/latest/stripe-starter-resolved.json +20090 -12155
- package/examples/source/fabric-ecommerce.json +0 -894
- package/examples/source/pruned-shopify-product-schema.json +1 -9333
- package/examples/source/shopify-store-with-widget.json +0 -8953
- package/examples/source/stripe-starter-resolved.json +0 -19409
- package/lib/validate.d.ts.map +1 -1
- package/lib/validate.js +1 -2
- package/package.json +4 -4
package/lib/validate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/validate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAE1D,OAAO,KAAK,EAEV,gBAAgB,EAChB,aAAa,EASb,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAwB,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;AAQnF,OAAO,EAAC,WAAW,EAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/validate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAE1D,OAAO,KAAK,EAEV,gBAAgB,EAChB,aAAa,EASb,iBAAiB,EAElB,MAAM,kBA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GAMG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,OAAO,GAAG,gBAAgB,CASlF"}
|
package/lib/validate.js
CHANGED
|
@@ -397,8 +397,7 @@ function validateDirectives(projectSchema, additionalShapeIds = builtInModelShap
|
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
function validateOneOfs(projectSchema) {
|
|
400
|
-
const errors = [];
|
|
401
|
-
|
|
400
|
+
const errors = [];
|
|
402
401
|
(0, _schemaUtil.visitShapeProperties)(projectSchema.shapes, (schema, path) => {
|
|
403
402
|
const oneOfPath = schema.items ? ['items', 'oneOf'] : ['oneOf'];
|
|
404
403
|
schema = schema.items ? schema.items : schema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.26.0",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"examples"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@takeshape/errors": "8.
|
|
25
|
-
"@takeshape/json-schema": "8.
|
|
26
|
-
"@takeshape/util": "8.
|
|
24
|
+
"@takeshape/errors": "8.26.0",
|
|
25
|
+
"@takeshape/json-schema": "8.26.0",
|
|
26
|
+
"@takeshape/util": "8.26.0",
|
|
27
27
|
"ajv": "^7.0.4",
|
|
28
28
|
"ajv-formats": "^1.5.1",
|
|
29
29
|
"lodash": "^4.17.20",
|