@takeshape/schema 7.194.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/README.md +5 -0
- package/es/api-version.js +21 -0
- package/es/auth-schemas.js +0 -0
- package/es/builtin-schema.js +590 -0
- package/es/content-schema-transform.js +192 -0
- package/es/entitlements.js +0 -0
- package/es/enum.js +11 -0
- package/es/get-is-leaf.js +58 -0
- package/es/index.js +25 -0
- package/es/migration.js +413 -0
- package/es/mocks.js +47 -0
- package/es/patterns.js +0 -0
- package/es/project-schema/index.js +10 -0
- package/es/project-schema/v1.0.0.js +0 -0
- package/es/project-schema/v3.0.0.js +0 -0
- package/es/project-schema/v3.1.0.js +0 -0
- package/es/project-schema/v3.2.0.js +0 -0
- package/es/project-schema/v3.3.0.js +0 -0
- package/es/project-schema/v3.4.0.js +0 -0
- package/es/project-schema/v3.5.0.js +0 -0
- package/es/project-schema/v3.5.1.js +0 -0
- package/es/project-schema/v3.6.0.js +0 -0
- package/es/refs.js +301 -0
- package/es/resolvers.js +2 -0
- package/es/scalars.js +4 -0
- package/es/schema-util.js +1197 -0
- package/es/schemas/auth-schemas.json +313 -0
- package/es/schemas/project-schema/meta-schema-v1.0.0.json +209 -0
- package/es/schemas/project-schema/meta-schema-v3.0.0.json +609 -0
- package/es/schemas/project-schema/meta-schema-v3.1.0.json +609 -0
- package/es/schemas/project-schema/meta-schema-v3.2.0.json +613 -0
- package/es/schemas/project-schema/meta-schema-v3.3.0.json +613 -0
- package/es/schemas/project-schema/meta-schema-v3.4.0.json +613 -0
- package/es/schemas/project-schema/meta-schema-v3.5.0.json +627 -0
- package/es/schemas/project-schema/meta-schema-v3.5.1.json +630 -0
- package/es/schemas/project-schema/meta-schema-v3.6.0.json +633 -0
- package/es/schemas/project-schema/v1.0.0.json +321 -0
- package/es/schemas/project-schema/v3.0.0.json +411 -0
- package/es/schemas/project-schema/v3.1.0.json +569 -0
- package/es/schemas/project-schema/v3.2.0.json +577 -0
- package/es/schemas/project-schema/v3.3.0.json +578 -0
- package/es/schemas/project-schema/v3.4.0.json +568 -0
- package/es/schemas/project-schema/v3.5.0.json +568 -0
- package/es/schemas/project-schema/v3.5.1.json +568 -0
- package/es/schemas/project-schema/v3.6.0.json +584 -0
- package/es/schemas/project-schema.json +16 -0
- package/es/schemas/user-schema.json +58 -0
- package/es/services.js +379 -0
- package/es/taxonomies.js +55 -0
- package/es/template-shapes.js +79 -0
- package/es/types.js +202 -0
- package/es/unions.js +137 -0
- package/es/user-schema.js +0 -0
- package/es/util/detect-cycles.js +54 -0
- package/es/util/index.js +1 -0
- package/es/validate.js +764 -0
- package/es/versions.js +4 -0
- package/es/workflows.js +69 -0
- package/examples/.pnpm-debug.log +20 -0
- package/examples/v1_0_0/beer-schema.json +125 -0
- package/examples/v1_0_0/blog-schema.json +192 -0
- package/examples/v1_0_0/brewery-schema.json +232 -0
- package/examples/v1_0_0/complex-project-schema.json +3197 -0
- package/examples/v1_0_0/error-schema.json +275 -0
- package/examples/v1_0_0/frank-and-fred-schema.json +21387 -0
- package/examples/v1_0_0/massive-schema.json +6930 -0
- package/examples/v1_0_0/post-schema.json +83 -0
- package/examples/v1_0_0/real-world-schema.json +797 -0
- package/examples/v1_0_0/recursive-repeater-schema.json +69 -0
- package/examples/v1_0_0/recursive-schema.json +79 -0
- package/examples/v1_0_0/schema-with-repeater-draftjs.json +292 -0
- package/examples/v1_0_0/shape-books.json +797 -0
- package/examples/v1_0_0/user-schema-no-required.json +84 -0
- package/examples/v1_0_0/user-schema-with-defaults.json +105 -0
- package/examples/v1_0_0/user-schema-with-obj-prop.json +92 -0
- package/examples/v1_0_0/user-schema.json +87 -0
- package/examples/v3_0_0/rick-and-morty-rest.json +62 -0
- package/examples/v3_0_0/shopify-lookbook.json +1172 -0
- package/examples/v3_0_0/shopify-store-with-widget.json +11323 -0
- package/examples/v3_2_0/blog-schema.json +378 -0
- package/examples/v3_2_0/brewery-schema.json +385 -0
- package/examples/v3_2_0/complex-project-schema.json +3748 -0
- package/examples/v3_2_0/frank-and-fred-schema.json +19217 -0
- package/examples/v3_2_0/massive-schema.json +6676 -0
- package/examples/v3_2_0/pet-oneof-array.json +323 -0
- package/examples/v3_2_0/post-schema.json +265 -0
- package/examples/v3_2_0/real-world-schema.json +970 -0
- package/examples/v3_2_0/recursive-repeater-schema.json +144 -0
- package/examples/v3_2_0/recursive-schema.json +151 -0
- package/examples/v3_2_0/rick-and-morty-rest.json +65 -0
- package/examples/v3_2_0/schema-with-repeater-draftjs.json +381 -0
- package/examples/v3_2_0/shape-books.json +1044 -0
- package/examples/v3_2_0/shopify-store-with-widget.json +11016 -0
- package/examples/v3_2_0/user-schema-no-required.json +174 -0
- package/examples/v3_2_0/user-schema-with-defaults.json +187 -0
- package/examples/v3_3_0/blog-schema.json +405 -0
- package/examples/v3_3_0/brewery-schema.json +406 -0
- package/examples/v3_3_0/complex-project-schema.json +4076 -0
- package/examples/v3_3_0/frank-and-fred-schema.json +20913 -0
- package/examples/v3_3_0/massive-schema.json +7309 -0
- package/examples/v3_3_0/pet-oneof-array.json +380 -0
- package/examples/v3_3_0/post-schema.json +248 -0
- package/examples/v3_3_0/real-world-schema.json +1046 -0
- package/examples/v3_3_0/recursive-repeater-schema.json +154 -0
- package/examples/v3_3_0/recursive-schema.json +161 -0
- package/examples/v3_3_0/rick-and-morty-rest.json +101 -0
- package/examples/v3_3_0/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_3_0/shape-books.json +1121 -0
- package/examples/v3_3_0/shopify-lookbook.json +1196 -0
- package/examples/v3_3_0/shopify-store-with-widget.json +11320 -0
- package/examples/v3_3_0/user-schema-no-required.json +185 -0
- package/examples/v3_3_0/user-schema-with-defaults.json +210 -0
- package/examples/v3_4_0/blog-schema.json +405 -0
- package/examples/v3_4_0/brewery-schema.json +406 -0
- package/examples/v3_4_0/complex-project-schema.json +4076 -0
- package/examples/v3_4_0/frank-and-fred-schema.json +20913 -0
- package/examples/v3_4_0/massive-schema.json +7309 -0
- package/examples/v3_4_0/pet-oneof-array.json +420 -0
- package/examples/v3_4_0/post-schema.json +248 -0
- package/examples/v3_4_0/real-world-schema.json +1046 -0
- package/examples/v3_4_0/recursive-repeater-schema.json +154 -0
- package/examples/v3_4_0/recursive-schema.json +161 -0
- package/examples/v3_4_0/rick-and-morty-rest.json +101 -0
- package/examples/v3_4_0/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_4_0/shape-books.json +1121 -0
- package/examples/v3_4_0/shopify-lookbook.json +1196 -0
- package/examples/v3_4_0/shopify-store-with-widget.json +11323 -0
- package/examples/v3_4_0/user-schema-no-required.json +185 -0
- package/examples/v3_4_0/user-schema-with-defaults.json +210 -0
- package/examples/v3_5_0/blog-schema.json +405 -0
- package/examples/v3_5_0/brewery-schema.json +406 -0
- package/examples/v3_5_0/complex-project-schema.json +4076 -0
- package/examples/v3_5_0/frank-and-fred-schema.json +20913 -0
- package/examples/v3_5_0/massive-schema.json +7309 -0
- package/examples/v3_5_0/pet-oneof-array.json +420 -0
- package/examples/v3_5_0/post-schema.json +248 -0
- package/examples/v3_5_0/real-world-schema.json +1046 -0
- package/examples/v3_5_0/recursive-repeater-schema.json +154 -0
- package/examples/v3_5_0/recursive-schema.json +161 -0
- package/examples/v3_5_0/rick-and-morty-rest.json +101 -0
- package/examples/v3_5_0/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_5_0/shape-books.json +1121 -0
- package/examples/v3_5_0/shopify-lookbook.json +1196 -0
- package/examples/v3_5_0/shopify-store-with-widget.json +12271 -0
- package/examples/v3_5_0/user-schema-no-required.json +185 -0
- package/examples/v3_5_0/user-schema-with-defaults.json +210 -0
- package/examples/v3_5_1/blog-schema.json +405 -0
- package/examples/v3_5_1/brewery-schema.json +406 -0
- package/examples/v3_5_1/complex-project-schema.json +4076 -0
- package/examples/v3_5_1/frank-and-fred-schema.json +20913 -0
- package/examples/v3_5_1/massive-schema.json +7309 -0
- package/examples/v3_5_1/pet-oneof-array.json +420 -0
- package/examples/v3_5_1/post-schema.json +248 -0
- package/examples/v3_5_1/real-world-schema.json +1046 -0
- package/examples/v3_5_1/recursive-repeater-schema.json +154 -0
- package/examples/v3_5_1/recursive-schema.json +161 -0
- package/examples/v3_5_1/rick-and-morty-rest.json +101 -0
- package/examples/v3_5_1/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_5_1/shape-books.json +1121 -0
- package/examples/v3_5_1/shopify-lookbook.json +1196 -0
- package/examples/v3_5_1/shopify-store-with-widget.json +12271 -0
- package/examples/v3_5_1/stripe-starter-resolved.json +21419 -0
- package/examples/v3_5_1/user-schema-no-required.json +185 -0
- package/examples/v3_5_1/user-schema-with-defaults.json +210 -0
- package/examples/v3_6_0/blog-schema.json +405 -0
- package/examples/v3_6_0/brewery-schema.json +406 -0
- package/examples/v3_6_0/complex-project-schema.json +4076 -0
- package/examples/v3_6_0/frank-and-fred-schema.json +20913 -0
- package/examples/v3_6_0/massive-schema.json +7309 -0
- package/examples/v3_6_0/pet-oneof-array.json +420 -0
- package/examples/v3_6_0/post-schema.json +248 -0
- package/examples/v3_6_0/real-world-schema.json +1046 -0
- package/examples/v3_6_0/recursive-repeater-schema.json +154 -0
- package/examples/v3_6_0/recursive-schema.json +161 -0
- package/examples/v3_6_0/rick-and-morty-rest.json +101 -0
- package/examples/v3_6_0/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_6_0/shape-books.json +1121 -0
- package/examples/v3_6_0/shopify-lookbook.json +1196 -0
- package/examples/v3_6_0/shopify-store-with-widget.json +12271 -0
- package/examples/v3_6_0/stripe-starter-resolved.json +21419 -0
- package/examples/v3_6_0/user-schema-no-required.json +185 -0
- package/examples/v3_6_0/user-schema-with-defaults.json +210 -0
- package/lib/api-version.d.ts +6 -0
- package/lib/api-version.d.ts.map +1 -0
- package/lib/api-version.js +36 -0
- package/lib/auth-schemas.d.ts +105 -0
- package/lib/auth-schemas.d.ts.map +1 -0
- package/lib/auth-schemas.js +1 -0
- package/lib/builtin-schema.d.ts +8 -0
- package/lib/builtin-schema.d.ts.map +1 -0
- package/lib/builtin-schema.js +606 -0
- package/lib/content-schema-transform.d.ts +41 -0
- package/lib/content-schema-transform.d.ts.map +1 -0
- package/lib/content-schema-transform.js +217 -0
- package/lib/entitlements.d.ts +1 -0
- package/lib/entitlements.d.ts.map +1 -0
- package/lib/entitlements.js +1 -0
- package/lib/enum.d.ts +3 -0
- package/lib/enum.d.ts.map +1 -0
- package/lib/enum.js +18 -0
- package/lib/get-is-leaf.d.ts +4 -0
- package/lib/get-is-leaf.d.ts.map +1 -0
- package/lib/get-is-leaf.js +68 -0
- package/lib/index.d.ts +27 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +359 -0
- package/lib/migration.d.ts +55 -0
- package/lib/migration.d.ts.map +1 -0
- package/lib/migration.js +463 -0
- package/lib/mocks.d.ts +13 -0
- package/lib/mocks.d.ts.map +1 -0
- package/lib/mocks.js +61 -0
- package/lib/patterns.d.ts +13 -0
- package/lib/patterns.d.ts.map +1 -0
- package/lib/patterns.js +1 -0
- package/lib/project-schema/index.d.ts +21 -0
- package/lib/project-schema/index.d.ts.map +1 -0
- package/lib/project-schema/index.js +122 -0
- package/lib/project-schema/v1.0.0.d.ts +293 -0
- package/lib/project-schema/v1.0.0.d.ts.map +1 -0
- package/lib/project-schema/v1.0.0.js +1 -0
- package/lib/project-schema/v3.0.0.d.ts +480 -0
- package/lib/project-schema/v3.0.0.d.ts.map +1 -0
- package/lib/project-schema/v3.0.0.js +1 -0
- package/lib/project-schema/v3.1.0.d.ts +623 -0
- package/lib/project-schema/v3.1.0.d.ts.map +1 -0
- package/lib/project-schema/v3.1.0.js +1 -0
- package/lib/project-schema/v3.2.0.d.ts +634 -0
- package/lib/project-schema/v3.2.0.d.ts.map +1 -0
- package/lib/project-schema/v3.2.0.js +1 -0
- package/lib/project-schema/v3.3.0.d.ts +634 -0
- package/lib/project-schema/v3.3.0.d.ts.map +1 -0
- package/lib/project-schema/v3.3.0.js +1 -0
- package/lib/project-schema/v3.4.0.d.ts +626 -0
- package/lib/project-schema/v3.4.0.d.ts.map +1 -0
- package/lib/project-schema/v3.4.0.js +1 -0
- package/lib/project-schema/v3.5.0.d.ts +651 -0
- package/lib/project-schema/v3.5.0.d.ts.map +1 -0
- package/lib/project-schema/v3.5.0.js +1 -0
- package/lib/project-schema/v3.5.1.d.ts +651 -0
- package/lib/project-schema/v3.5.1.d.ts.map +1 -0
- package/lib/project-schema/v3.5.1.js +1 -0
- package/lib/project-schema/v3.6.0.d.ts +660 -0
- package/lib/project-schema/v3.6.0.d.ts.map +1 -0
- package/lib/project-schema/v3.6.0.js +1 -0
- package/lib/refs.d.ts +122 -0
- package/lib/refs.d.ts.map +1 -0
- package/lib/refs.js +359 -0
- package/lib/resolvers.d.ts +4 -0
- package/lib/resolvers.d.ts.map +1 -0
- package/lib/resolvers.js +10 -0
- package/lib/scalars.d.ts +3 -0
- package/lib/scalars.d.ts.map +1 -0
- package/lib/scalars.js +13 -0
- package/lib/schema-util.d.ts +201 -0
- package/lib/schema-util.d.ts.map +1 -0
- package/lib/schema-util.js +1353 -0
- package/lib/schemas/auth-schemas.json +313 -0
- package/lib/schemas/project-schema/meta-schema-v1.0.0.json +209 -0
- package/lib/schemas/project-schema/meta-schema-v3.0.0.json +609 -0
- package/lib/schemas/project-schema/meta-schema-v3.1.0.json +609 -0
- package/lib/schemas/project-schema/meta-schema-v3.2.0.json +613 -0
- package/lib/schemas/project-schema/meta-schema-v3.3.0.json +613 -0
- package/lib/schemas/project-schema/meta-schema-v3.4.0.json +613 -0
- package/lib/schemas/project-schema/meta-schema-v3.5.0.json +627 -0
- package/lib/schemas/project-schema/meta-schema-v3.5.1.json +630 -0
- package/lib/schemas/project-schema/meta-schema-v3.6.0.json +633 -0
- package/lib/schemas/project-schema/v1.0.0.json +321 -0
- package/lib/schemas/project-schema/v3.0.0.json +411 -0
- package/lib/schemas/project-schema/v3.1.0.json +569 -0
- package/lib/schemas/project-schema/v3.2.0.json +577 -0
- package/lib/schemas/project-schema/v3.3.0.json +578 -0
- package/lib/schemas/project-schema/v3.4.0.json +568 -0
- package/lib/schemas/project-schema/v3.5.0.json +568 -0
- package/lib/schemas/project-schema/v3.5.1.json +568 -0
- package/lib/schemas/project-schema/v3.6.0.json +584 -0
- package/lib/schemas/project-schema.json +16 -0
- package/lib/schemas/user-schema.json +58 -0
- package/lib/services.d.ts +71 -0
- package/lib/services.d.ts.map +1 -0
- package/lib/services.js +413 -0
- package/lib/taxonomies.d.ts +16 -0
- package/lib/taxonomies.d.ts.map +1 -0
- package/lib/taxonomies.js +69 -0
- package/lib/template-shapes.d.ts +32 -0
- package/lib/template-shapes.d.ts.map +1 -0
- package/lib/template-shapes.js +100 -0
- package/lib/types.d.ts +187 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +289 -0
- package/lib/unions.d.ts +29 -0
- package/lib/unions.d.ts.map +1 -0
- package/lib/unions.js +167 -0
- package/lib/user-schema.d.ts +39 -0
- package/lib/user-schema.d.ts.map +1 -0
- package/lib/user-schema.js +1 -0
- package/lib/util/detect-cycles.d.ts +6 -0
- package/lib/util/detect-cycles.d.ts.map +1 -0
- package/lib/util/detect-cycles.js +61 -0
- package/lib/util/index.d.ts +2 -0
- package/lib/util/index.d.ts.map +1 -0
- package/lib/util/index.js +18 -0
- package/lib/validate.d.ts +49 -0
- package/lib/validate.d.ts.map +1 -0
- package/lib/validate.js +823 -0
- package/lib/versions.d.ts +5 -0
- package/lib/versions.d.ts.map +1 -0
- package/lib/versions.js +14 -0
- package/lib/workflows.d.ts +15 -0
- package/lib/workflows.d.ts.map +1 -0
- package/lib/workflows.js +92 -0
- package/package.json +65 -0
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schema.takeshape.io/project-schema/meta-schema-v3.6.0#",
|
|
4
|
+
"title": "Content Schema",
|
|
5
|
+
"definitions": {
|
|
6
|
+
"schemaArray": {
|
|
7
|
+
"type": "array",
|
|
8
|
+
"minItems": 1,
|
|
9
|
+
"items": {
|
|
10
|
+
"$ref": "#"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"nonNegativeInteger": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"minimum": 0
|
|
16
|
+
},
|
|
17
|
+
"nonNegativeIntegerDefault0": {
|
|
18
|
+
"allOf": [
|
|
19
|
+
{
|
|
20
|
+
"$ref": "#/definitions/nonNegativeInteger"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"default": 0
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"simpleTypes": {
|
|
28
|
+
"enum": ["array", "boolean", "integer", "null", "number", "object", "string"]
|
|
29
|
+
},
|
|
30
|
+
"stringArray": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"uniqueItems": true,
|
|
36
|
+
"default": []
|
|
37
|
+
},
|
|
38
|
+
"relationship": {
|
|
39
|
+
"title": "Relationship",
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"shapeIds": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"minItems": 1
|
|
48
|
+
},
|
|
49
|
+
"type": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"relatedName": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": ["shapeIds"],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
},
|
|
60
|
+
"mappingString": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"pattern": "^[\\w-]+(?::[\\w-]+)+(?:\\.[\\w-]+)+$"
|
|
63
|
+
},
|
|
64
|
+
"fieldMapping": {
|
|
65
|
+
"title": "Field Mapping",
|
|
66
|
+
"oneOf": [
|
|
67
|
+
{
|
|
68
|
+
"$ref": "#/definitions/mappingString"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"$ref": "#/definitions/mappingString"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"refSchema": {
|
|
79
|
+
"title": "Ref Schema",
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"@ref": {
|
|
83
|
+
"$ref": "#/definitions/ref"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": ["@ref"]
|
|
87
|
+
},
|
|
88
|
+
"refSchemaLegacy": {
|
|
89
|
+
"title": "Ref Schema Legacy",
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"$ref": {
|
|
93
|
+
"$ref": "#/definitions/ref"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": ["$ref"]
|
|
97
|
+
},
|
|
98
|
+
"objectSchema": {
|
|
99
|
+
"title": "Object Schema",
|
|
100
|
+
"type": "object",
|
|
101
|
+
"allOf": [
|
|
102
|
+
{
|
|
103
|
+
"$ref": "#"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"properties": {
|
|
107
|
+
"type": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"const": "object"
|
|
110
|
+
},
|
|
111
|
+
"properties": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": {
|
|
114
|
+
"$ref": "#"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": ["type", "properties"]
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"arraySchema": {
|
|
123
|
+
"title": "Array Schema",
|
|
124
|
+
"type": "object",
|
|
125
|
+
"allOf": [
|
|
126
|
+
{
|
|
127
|
+
"$ref": "#"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"properties": {
|
|
131
|
+
"type": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"const": "array"
|
|
134
|
+
},
|
|
135
|
+
"items": {
|
|
136
|
+
"$ref": "#/definitions/contentObjectSchema"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"required": ["type", "items"]
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"allOfSchema": {
|
|
144
|
+
"title": "All Of Schema",
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"allOf": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"items": {
|
|
150
|
+
"oneOf": [
|
|
151
|
+
{
|
|
152
|
+
"$ref": "#/definitions/refSchema"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"$ref": "#/definitions/refSchemaLegacy"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"$ref": "#/definitions/objectSchema"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"unevaluatedProperties": true
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"required": ["allOf"],
|
|
166
|
+
"additionalProperties": false
|
|
167
|
+
},
|
|
168
|
+
"oneOfSchema": {
|
|
169
|
+
"title": "One Of Schema",
|
|
170
|
+
"type": "object",
|
|
171
|
+
"properties": {
|
|
172
|
+
"oneOf": {
|
|
173
|
+
"type": "array",
|
|
174
|
+
"items": {
|
|
175
|
+
"oneOf": [
|
|
176
|
+
{
|
|
177
|
+
"$ref": "#/definitions/refSchema"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"$ref": "#/definitions/refSchemaLegacy"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"$ref": "#/definitions/objectSchema"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"unevaluatedProperties": true
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"required": ["oneOf"],
|
|
191
|
+
"additionalProperties": false
|
|
192
|
+
},
|
|
193
|
+
"contentObjectSchema": {
|
|
194
|
+
"title": "Content Object Schema",
|
|
195
|
+
"type": "object",
|
|
196
|
+
"oneOf": [
|
|
197
|
+
{
|
|
198
|
+
"$ref": "#/definitions/allOfSchema"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"$ref": "#/definitions/oneOfSchema"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"$ref": "#/definitions/refSchema"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"$ref": "#/definitions/refSchemaLegacy"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"$ref": "#/definitions/objectSchema"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"$ref": "#/definitions/arraySchema"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
"queryMap": {
|
|
218
|
+
"title": "Query Map",
|
|
219
|
+
"type": "object",
|
|
220
|
+
"patternProperties": {
|
|
221
|
+
"[0-9A-Za-z_-]+": {
|
|
222
|
+
"$ref": "#/definitions/query"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"args": {
|
|
227
|
+
"title": "Args",
|
|
228
|
+
"oneOf": [{"type": "string"}, {"$ref": "#/definitions/contentObjectSchema"}]
|
|
229
|
+
},
|
|
230
|
+
"returnShape": {
|
|
231
|
+
"title": "Return Shape",
|
|
232
|
+
"oneOf": [{"type": "string"}, {"$ref": "#/definitions/arraySchema"}]
|
|
233
|
+
},
|
|
234
|
+
"directiveConfigItem": {
|
|
235
|
+
"title": "Directive Config Item",
|
|
236
|
+
"description": "A tuple with a string directive name, and options to pass to the directive",
|
|
237
|
+
"type": "array",
|
|
238
|
+
"items": [
|
|
239
|
+
{
|
|
240
|
+
"title": "Directive Name",
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"title": "Directive Options",
|
|
245
|
+
"type": "object",
|
|
246
|
+
"propertyNames": {
|
|
247
|
+
"pattern": "[0-9A-Za-z_-]+"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
"directiveConfig": {
|
|
253
|
+
"title": "Directive Config",
|
|
254
|
+
"description": "An array of individual directive config items to process in order",
|
|
255
|
+
"type": "array",
|
|
256
|
+
"items": {
|
|
257
|
+
"$ref": "#/definitions/directiveConfigItem"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"directiveMappingMap": {
|
|
261
|
+
"title": "Directive Mapping Map",
|
|
262
|
+
"description": "An map of object keys / key paths to directive configs",
|
|
263
|
+
"type": "object",
|
|
264
|
+
"patternProperties": {
|
|
265
|
+
"[0-9A-Za-z_-]+": {
|
|
266
|
+
"$ref": "#/definitions/directiveConfig"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"directiveMappingArrayItem": {
|
|
271
|
+
"title": "Directive Mapping Array Item",
|
|
272
|
+
"description": "A tuple with a string key and a directive config to evaluate",
|
|
273
|
+
"type": "array",
|
|
274
|
+
"items": [{"type": "string"}, {"$ref": "#/definitions/directiveConfig"}]
|
|
275
|
+
},
|
|
276
|
+
"directiveMappingArray": {
|
|
277
|
+
"title": "Directive Mapping Array",
|
|
278
|
+
"description": "An array of key / value or directive config tuples",
|
|
279
|
+
"type": "array",
|
|
280
|
+
"items": {"$ref": "#/definitions/directiveMappingArrayItem"}
|
|
281
|
+
},
|
|
282
|
+
"basicResolver": {
|
|
283
|
+
"title": "BasicResolver",
|
|
284
|
+
"type": "object",
|
|
285
|
+
"properties": {
|
|
286
|
+
"if": {"type": "string"},
|
|
287
|
+
"id": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
290
|
+
},
|
|
291
|
+
"name": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"description": "The name of the built-in resolver your query or mutation should use."
|
|
294
|
+
},
|
|
295
|
+
"service": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"description": "Specifies the service configuration the resolver should use, identified by a connected service's slug. This configuration contains the endpoint and authentication necessary to make API calls."
|
|
298
|
+
},
|
|
299
|
+
"argsMapping": {
|
|
300
|
+
"description": "Maps a query's input args to the input expected by the service's endpoint.",
|
|
301
|
+
"oneOf": [
|
|
302
|
+
{
|
|
303
|
+
"$ref": "#/definitions/directiveMappingMap"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"$ref": "#/definitions/directiveConfig"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
"searchParamsMapping": {
|
|
311
|
+
"description": "Set or evaluate directives to generate searchParams for the service endpoint.",
|
|
312
|
+
"$ref": "#/definitions/directiveMappingArray"
|
|
313
|
+
},
|
|
314
|
+
"resultsMapping": {
|
|
315
|
+
"description": "Maps a service endpoint's response results to the expected shape of the query's response.",
|
|
316
|
+
"oneOf": [
|
|
317
|
+
{
|
|
318
|
+
"$ref": "#/definitions/directiveMappingMap"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"$ref": "#/definitions/directiveConfig"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"options": {
|
|
326
|
+
"type": "object",
|
|
327
|
+
"properties": {
|
|
328
|
+
"model": {"type": "string"}
|
|
329
|
+
},
|
|
330
|
+
"additionalProperties": true
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"required": ["name", "service"],
|
|
334
|
+
"additionalProperties": false
|
|
335
|
+
},
|
|
336
|
+
"composeResolver": {
|
|
337
|
+
"title": "ComposeResolver",
|
|
338
|
+
"type": "object",
|
|
339
|
+
"properties": {
|
|
340
|
+
"compose": {
|
|
341
|
+
"type": "array",
|
|
342
|
+
"items": {
|
|
343
|
+
"$ref": "#/definitions/basicResolver"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"resultsMapping": {
|
|
347
|
+
"oneOf": [
|
|
348
|
+
{
|
|
349
|
+
"$ref": "#/definitions/directiveMappingMap"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"$ref": "#/definitions/directiveConfig"
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"required": ["compose"],
|
|
358
|
+
"additionalProperties": false
|
|
359
|
+
},
|
|
360
|
+
"resolver": {
|
|
361
|
+
"title": "Resolver",
|
|
362
|
+
"oneOf": [{"$ref": "#/definitions/basicResolver"}, {"$ref": "#/definitions/composeResolver"}]
|
|
363
|
+
},
|
|
364
|
+
"ref": {
|
|
365
|
+
"title": "Ref",
|
|
366
|
+
"type": "string"
|
|
367
|
+
},
|
|
368
|
+
"query": {
|
|
369
|
+
"title": "Query",
|
|
370
|
+
"type": "object",
|
|
371
|
+
"properties": {
|
|
372
|
+
"args": {
|
|
373
|
+
"description": "The args field specifies the name of a Shape for the input arguments required by your resolver.",
|
|
374
|
+
"$ref": "#/definitions/args"
|
|
375
|
+
},
|
|
376
|
+
"resolver": {
|
|
377
|
+
"description": "Configures the resolver for your query or mutation.",
|
|
378
|
+
"$ref": "#/definitions/resolver"
|
|
379
|
+
},
|
|
380
|
+
"shape": {
|
|
381
|
+
"$ref": "#/definitions/returnShape",
|
|
382
|
+
"description": "Specifies which shape is returned by the query or mutation. The shape can refer to a shape in the schema's \"shapes\" object or a shape that's available on a service schema."
|
|
383
|
+
},
|
|
384
|
+
"description": {
|
|
385
|
+
"type": "string",
|
|
386
|
+
"description": "Provides more detail about what the query or mutation is for. This will be displayed in the automatically-generated GraphQL API docs."
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"required": ["resolver", "shape"]
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"type": "object",
|
|
393
|
+
"properties": {
|
|
394
|
+
"$id": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"format": "uri-reference"
|
|
397
|
+
},
|
|
398
|
+
"$schema": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"format": "uri"
|
|
401
|
+
},
|
|
402
|
+
"$ref": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"format": "uri-reference"
|
|
405
|
+
},
|
|
406
|
+
"$comment": {
|
|
407
|
+
"type": "string"
|
|
408
|
+
},
|
|
409
|
+
"title": {
|
|
410
|
+
"type": "string"
|
|
411
|
+
},
|
|
412
|
+
"description": {
|
|
413
|
+
"type": "string"
|
|
414
|
+
},
|
|
415
|
+
"default": true,
|
|
416
|
+
"readOnly": {
|
|
417
|
+
"type": "boolean",
|
|
418
|
+
"default": false
|
|
419
|
+
},
|
|
420
|
+
"examples": {
|
|
421
|
+
"type": "array",
|
|
422
|
+
"items": true
|
|
423
|
+
},
|
|
424
|
+
"multipleOf": {
|
|
425
|
+
"type": "number",
|
|
426
|
+
"exclusiveMinimum": 0
|
|
427
|
+
},
|
|
428
|
+
"maximum": {
|
|
429
|
+
"type": "number"
|
|
430
|
+
},
|
|
431
|
+
"exclusiveMaximum": {
|
|
432
|
+
"type": "number"
|
|
433
|
+
},
|
|
434
|
+
"minimum": {
|
|
435
|
+
"type": "number"
|
|
436
|
+
},
|
|
437
|
+
"exclusiveMinimum": {
|
|
438
|
+
"type": "number"
|
|
439
|
+
},
|
|
440
|
+
"maxLength": {
|
|
441
|
+
"$ref": "#/definitions/nonNegativeInteger"
|
|
442
|
+
},
|
|
443
|
+
"minLength": {
|
|
444
|
+
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
|
445
|
+
},
|
|
446
|
+
"pattern": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"format": "regex"
|
|
449
|
+
},
|
|
450
|
+
"additionalItems": {
|
|
451
|
+
"$ref": "#"
|
|
452
|
+
},
|
|
453
|
+
"items": {
|
|
454
|
+
"$ref": "#"
|
|
455
|
+
},
|
|
456
|
+
"maxItems": {
|
|
457
|
+
"$ref": "#/definitions/nonNegativeInteger"
|
|
458
|
+
},
|
|
459
|
+
"minItems": {
|
|
460
|
+
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
|
461
|
+
},
|
|
462
|
+
"uniqueItems": {
|
|
463
|
+
"type": "boolean",
|
|
464
|
+
"default": false
|
|
465
|
+
},
|
|
466
|
+
"contains": {
|
|
467
|
+
"$ref": "#"
|
|
468
|
+
},
|
|
469
|
+
"maxProperties": {
|
|
470
|
+
"$ref": "#/definitions/nonNegativeInteger"
|
|
471
|
+
},
|
|
472
|
+
"minProperties": {
|
|
473
|
+
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
|
474
|
+
},
|
|
475
|
+
"required": {
|
|
476
|
+
"$ref": "#/definitions/stringArray"
|
|
477
|
+
},
|
|
478
|
+
"additionalProperties": {
|
|
479
|
+
"oneOf": [
|
|
480
|
+
{"$ref": "#"},
|
|
481
|
+
{"enum": [false]}
|
|
482
|
+
]
|
|
483
|
+
},
|
|
484
|
+
"definitions": {
|
|
485
|
+
"type": "object",
|
|
486
|
+
"additionalProperties": {
|
|
487
|
+
"$ref": "#"
|
|
488
|
+
},
|
|
489
|
+
"default": {}
|
|
490
|
+
},
|
|
491
|
+
"properties": {
|
|
492
|
+
"type": "object",
|
|
493
|
+
"additionalProperties": {
|
|
494
|
+
"$ref": "#"
|
|
495
|
+
},
|
|
496
|
+
"default": {}
|
|
497
|
+
},
|
|
498
|
+
"patternProperties": {
|
|
499
|
+
"type": "object",
|
|
500
|
+
"additionalProperties": {
|
|
501
|
+
"$ref": "#"
|
|
502
|
+
},
|
|
503
|
+
"propertyNames": {
|
|
504
|
+
"format": "regex"
|
|
505
|
+
},
|
|
506
|
+
"default": {}
|
|
507
|
+
},
|
|
508
|
+
"dependencies": {
|
|
509
|
+
"type": "object",
|
|
510
|
+
"additionalProperties": {
|
|
511
|
+
"anyOf": [
|
|
512
|
+
{
|
|
513
|
+
"$ref": "#"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"$ref": "#/definitions/stringArray"
|
|
517
|
+
}
|
|
518
|
+
]
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
"propertyNames": {
|
|
522
|
+
"$ref": "#"
|
|
523
|
+
},
|
|
524
|
+
"const": true,
|
|
525
|
+
"enum": {
|
|
526
|
+
"type": "array",
|
|
527
|
+
"items": true,
|
|
528
|
+
"minItems": 1,
|
|
529
|
+
"uniqueItems": true
|
|
530
|
+
},
|
|
531
|
+
"type": {
|
|
532
|
+
"anyOf": [
|
|
533
|
+
{
|
|
534
|
+
"$ref": "#/definitions/simpleTypes"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"type": "array",
|
|
538
|
+
"items": {
|
|
539
|
+
"$ref": "#/definitions/simpleTypes"
|
|
540
|
+
},
|
|
541
|
+
"minItems": 1,
|
|
542
|
+
"uniqueItems": true
|
|
543
|
+
}
|
|
544
|
+
]
|
|
545
|
+
},
|
|
546
|
+
"format": {
|
|
547
|
+
"type": "string"
|
|
548
|
+
},
|
|
549
|
+
"contentMediaType": {
|
|
550
|
+
"type": "string"
|
|
551
|
+
},
|
|
552
|
+
"contentEncoding": {
|
|
553
|
+
"type": "string"
|
|
554
|
+
},
|
|
555
|
+
"if": {
|
|
556
|
+
"$ref": "#"
|
|
557
|
+
},
|
|
558
|
+
"then": {
|
|
559
|
+
"$ref": "#"
|
|
560
|
+
},
|
|
561
|
+
"else": {
|
|
562
|
+
"$ref": "#"
|
|
563
|
+
},
|
|
564
|
+
"allOf": {
|
|
565
|
+
"$ref": "#/definitions/schemaArray"
|
|
566
|
+
},
|
|
567
|
+
"anyOf": {
|
|
568
|
+
"$ref": "#/definitions/schemaArray"
|
|
569
|
+
},
|
|
570
|
+
"oneOf": {
|
|
571
|
+
"$ref": "#/definitions/schemaArray"
|
|
572
|
+
},
|
|
573
|
+
"not": {
|
|
574
|
+
"$ref": "#"
|
|
575
|
+
},
|
|
576
|
+
"@relationship": {
|
|
577
|
+
"$ref": "#/definitions/relationship"
|
|
578
|
+
},
|
|
579
|
+
"@syncLocaleStructure": {
|
|
580
|
+
"type": "boolean"
|
|
581
|
+
},
|
|
582
|
+
"@sensitive": {
|
|
583
|
+
"type": "boolean"
|
|
584
|
+
},
|
|
585
|
+
"@draftjs": {
|
|
586
|
+
"type": "boolean"
|
|
587
|
+
},
|
|
588
|
+
"@l10n": {
|
|
589
|
+
"type": "boolean"
|
|
590
|
+
},
|
|
591
|
+
"@key": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"pattern": "^[-_a-zA-Z0-9]+$"
|
|
594
|
+
},
|
|
595
|
+
"@workflow": {
|
|
596
|
+
"type": "string"
|
|
597
|
+
},
|
|
598
|
+
"@mapping": {
|
|
599
|
+
"$ref": "#/definitions/fieldMapping"
|
|
600
|
+
},
|
|
601
|
+
"@tag": {
|
|
602
|
+
"type": "string"
|
|
603
|
+
},
|
|
604
|
+
"@tags": {
|
|
605
|
+
"type": "array",
|
|
606
|
+
"items": {
|
|
607
|
+
"type": "string"
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
"@deprecationReason": {
|
|
611
|
+
"type": "string"
|
|
612
|
+
},
|
|
613
|
+
"@user": {
|
|
614
|
+
"type": "boolean"
|
|
615
|
+
},
|
|
616
|
+
"@args": {
|
|
617
|
+
"$ref": "#/definitions/args"
|
|
618
|
+
},
|
|
619
|
+
"@resolver": {
|
|
620
|
+
"$ref": "#/definitions/resolver"
|
|
621
|
+
},
|
|
622
|
+
"@ref": {
|
|
623
|
+
"$ref": "#/definitions/ref"
|
|
624
|
+
},
|
|
625
|
+
"@derivedFrom": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"value": {
|
|
629
|
+
"type": "string"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"additionalProperties": false
|
|
633
|
+
}
|