|
115 | 115 | "type": "object"
|
116 | 116 | },
|
117 | 117 | "Field": {
|
| 118 | + "required": [ |
| 119 | + "type" |
| 120 | + ], |
118 | 121 | "additionalProperties": false,
|
119 | 122 | "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 | + }, |
120 | 127 | "default_value": {},
|
121 | 128 | "description": {
|
122 | 129 | "type": "string"
|
123 | 130 | },
|
| 131 | + "enum": { |
| 132 | + "$ref": "#/definitions/EnumData" |
| 133 | + }, |
| 134 | + "float": { |
| 135 | + "$ref": "#/definitions/FloatData" |
| 136 | + }, |
| 137 | + "int": { |
| 138 | + "$ref": "#/definitions/IntData" |
| 139 | + }, |
124 | 140 | "is_filterable": {
|
125 | 141 | "type": [
|
126 | 142 | "boolean",
|
|
161 | 177 | },
|
162 | 178 | "name": {
|
163 | 179 | "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" |
164 | 213 | }
|
165 | 214 | },
|
166 | 215 | "type": "object",
|
167 |
| - "allOf": [ |
168 |
| - { |
169 |
| - "$ref": "#/definitions/FieldTypeData" |
170 |
| - } |
171 |
| - ], |
172 | 216 | "oneOf": [
|
173 | 217 | {
|
174 | 218 | "required": [
|
|
417 | 461 | "type",
|
418 | 462 | "enum"
|
419 | 463 | ],
|
420 |
| - "additionalProperties": false, |
421 | 464 | "properties": {
|
422 | 465 | "default_value": {
|
423 | 466 | "type": "string"
|
|
468 | 511 | "type",
|
469 | 512 | "reference"
|
470 | 513 | ],
|
471 |
| - "additionalProperties": false, |
472 | 514 | "properties": {
|
473 | 515 | "enum": {
|
474 | 516 | "type": "object",
|
|
516 | 558 | "type",
|
517 | 559 | "typed_reference"
|
518 | 560 | ],
|
519 |
| - "additionalProperties": false, |
520 | 561 | "properties": {
|
521 | 562 | "enum": {
|
522 | 563 | "type": "object",
|
|
564 | 605 | "type",
|
565 | 606 | "struct"
|
566 | 607 | ],
|
567 |
| - "additionalProperties": false, |
568 | 608 | "properties": {
|
569 | 609 | "enum": {
|
570 | 610 | "type": "object",
|
|
802 | 842 | },
|
803 | 843 | "type": "array"
|
804 | 844 | },
|
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 |
| - }, |
859 | 845 | "FloatData": {
|
860 | 846 | "additionalProperties": false,
|
861 | 847 | "properties": {
|
|
1071 | 1057 | ],
|
1072 | 1058 | "additionalProperties": false,
|
1073 | 1059 | "properties": {
|
1074 |
| - "is_dynamic_typed": { |
1075 |
| - "type": "boolean" |
1076 |
| - }, |
1077 | 1060 | "reference_type": {
|
1078 | 1061 | "description": "The parent reference refers to a record that has special ownership over the child",
|
1079 | 1062 | "enum": [
|
|
1088 | 1071 | "$ref": "#/definitions/ReferenceDetail"
|
1089 | 1072 | },
|
1090 | 1073 | "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" |
1099 | 1074 | }
|
1100 | 1075 | },
|
1101 | 1076 | "type": "object"
|
|
0 commit comments