@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/es/validate.js
CHANGED
|
@@ -364,8 +364,7 @@ function validateDirectives(projectSchema, additionalShapeIds = builtInModelShap
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
function validateOneOfs(projectSchema) {
|
|
367
|
-
const errors = [];
|
|
368
|
-
|
|
367
|
+
const errors = [];
|
|
369
368
|
visitShapeProperties(projectSchema.shapes, (schema, path) => {
|
|
370
369
|
const oneOfPath = schema.items ? ['items', 'oneOf'] : ['oneOf'];
|
|
371
370
|
schema = schema.items ? schema.items : schema;
|