Skip to content

Commit e49243b

Browse files
committed
schema fixes
1 parent a31e79c commit e49243b

File tree

1 file changed

+49
-74
lines changed

1 file changed

+49
-74
lines changed

external_domain_metadata_schema.json

Lines changed: 49 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,28 @@
115115
"type": "object"
116116
},
117117
"Field": {
118+
"required": [
119+
"type"
120+
],
118121
"additionalProperties": false,
119122
"properties": {
123+
"collection": {
124+
"$ref": "#/definitions/CollectionData",
125+
"description": "If collection is set, the field is a 'collection' of the given type. eg a list of enum values"
126+
},
120127
"default_value": {},
121128
"description": {
122129
"type": "string"
123130
},
131+
"enum": {
132+
"$ref": "#/definitions/EnumData"
133+
},
134+
"float": {
135+
"$ref": "#/definitions/FloatData"
136+
},
137+
"int": {
138+
"$ref": "#/definitions/IntData"
139+
},
124140
"is_filterable": {
125141
"type": [
126142
"boolean",
@@ -161,14 +177,42 @@
161177
},
162178
"name": {
163179
"type": "string"
180+
},
181+
"permission": {
182+
"$ref": "#/definitions/PermissionData"
183+
},
184+
"reference": {
185+
"$ref": "#/definitions/ReferenceData"
186+
},
187+
"struct": {
188+
"$ref": "#/definitions/StructData"
189+
},
190+
"text": {
191+
"$ref": "#/definitions/TextData"
192+
},
193+
"type": {
194+
"description": "The type of the field",
195+
"enum": [
196+
"bool",
197+
"int",
198+
"float",
199+
"text",
200+
"rich_text",
201+
"reference",
202+
"typed_reference",
203+
"enum",
204+
"date",
205+
"timestamp",
206+
"struct",
207+
"permission"
208+
],
209+
"type": "string"
210+
},
211+
"typed_reference": {
212+
"$ref": "#/definitions/TypedReferenceData"
164213
}
165214
},
166215
"type": "object",
167-
"allOf": [
168-
{
169-
"$ref": "#/definitions/FieldTypeData"
170-
}
171-
],
172216
"oneOf": [
173217
{
174218
"required": [
@@ -417,7 +461,6 @@
417461
"type",
418462
"enum"
419463
],
420-
"additionalProperties": false,
421464
"properties": {
422465
"default_value": {
423466
"type": "string"
@@ -468,7 +511,6 @@
468511
"type",
469512
"reference"
470513
],
471-
"additionalProperties": false,
472514
"properties": {
473515
"enum": {
474516
"type": "object",
@@ -516,7 +558,6 @@
516558
"type",
517559
"typed_reference"
518560
],
519-
"additionalProperties": false,
520561
"properties": {
521562
"enum": {
522563
"type": "object",
@@ -564,7 +605,6 @@
564605
"type",
565606
"struct"
566607
],
567-
"additionalProperties": false,
568608
"properties": {
569609
"enum": {
570610
"type": "object",
@@ -802,60 +842,6 @@
802842
},
803843
"type": "array"
804844
},
805-
"FieldTypeData": {
806-
"required": [
807-
"type"
808-
],
809-
"properties": {
810-
"collection": {
811-
"$ref": "#/definitions/CollectionData",
812-
"description": "If collection is set, the field is a 'collection' of the given type. eg a list of enum values"
813-
},
814-
"enum": {
815-
"$ref": "#/definitions/EnumData"
816-
},
817-
"float": {
818-
"$ref": "#/definitions/FloatData"
819-
},
820-
"int": {
821-
"$ref": "#/definitions/IntData"
822-
},
823-
"permission": {
824-
"$ref": "#/definitions/PermissionData"
825-
},
826-
"reference": {
827-
"$ref": "#/definitions/ReferenceData"
828-
},
829-
"struct": {
830-
"$ref": "#/definitions/StructData"
831-
},
832-
"text": {
833-
"$ref": "#/definitions/TextData"
834-
},
835-
"type": {
836-
"description": "The type of the field",
837-
"enum": [
838-
"bool",
839-
"int",
840-
"float",
841-
"text",
842-
"rich_text",
843-
"reference",
844-
"typed_reference",
845-
"enum",
846-
"date",
847-
"timestamp",
848-
"struct",
849-
"permission"
850-
],
851-
"type": "string"
852-
},
853-
"typed_reference": {
854-
"$ref": "#/definitions/TypedReferenceData"
855-
}
856-
},
857-
"type": "object"
858-
},
859845
"FloatData": {
860846
"additionalProperties": false,
861847
"properties": {
@@ -1071,9 +1057,6 @@
10711057
],
10721058
"additionalProperties": false,
10731059
"properties": {
1074-
"is_dynamic_typed": {
1075-
"type": "boolean"
1076-
},
10771060
"reference_type": {
10781061
"description": "The parent reference refers to a record that has special ownership over the child",
10791062
"enum": [
@@ -1088,14 +1071,6 @@
10881071
"$ref": "#/definitions/ReferenceDetail"
10891072
},
10901073
"type": "object"
1091-
},
1092-
"role": {
1093-
"description": "The parent reference refers to a record that has special ownership over the child",
1094-
"enum": [
1095-
"child",
1096-
"parent"
1097-
],
1098-
"type": "string"
10991074
}
11001075
},
11011076
"type": "object"

0 commit comments

Comments
 (0)