link.schema.json
7 months ago
page-link.schema.json
7 months ago
post-object.schema.json
7 months ago
relationship.schema.json
7 months ago
taxonomy.schema.json
7 months ago
user.schema.json
7 months ago
taxonomy.schema.json
46 lines
| 1 | { |
| 2 | "title": "SCF Taxonomy Field Fragment", |
| 3 | "description": "Type-specific properties for taxonomy term selection fields", |
| 4 | "type": "object", |
| 5 | "properties": { |
| 6 | "type": { |
| 7 | "enum": [ "taxonomy" ] |
| 8 | }, |
| 9 | "taxonomy": { |
| 10 | "type": "string", |
| 11 | "default": "category", |
| 12 | "description": "The taxonomy to select terms from" |
| 13 | }, |
| 14 | "field_type": { |
| 15 | "type": "string", |
| 16 | "enum": [ "checkbox", "multi_select", "radio", "select" ], |
| 17 | "default": "checkbox", |
| 18 | "description": "UI type for term selection" |
| 19 | }, |
| 20 | "multiple": { "$ref": "#/definitions/multiple" }, |
| 21 | "allow_null": { "$ref": "#/definitions/allow_null" }, |
| 22 | "return_format": { |
| 23 | "type": "string", |
| 24 | "enum": [ "object", "id" ], |
| 25 | "default": "id", |
| 26 | "description": "Value returned (WP_Term object or term ID)" |
| 27 | }, |
| 28 | "add_term": { |
| 29 | "type": "integer", |
| 30 | "default": 1, |
| 31 | "description": "Allow new terms to be created (1 for yes, 0 for no)" |
| 32 | }, |
| 33 | "load_terms": { |
| 34 | "type": "integer", |
| 35 | "default": 0, |
| 36 | "description": "Load terms assigned to post (1 for yes, 0 for no)" |
| 37 | }, |
| 38 | "save_terms": { |
| 39 | "type": "integer", |
| 40 | "default": 0, |
| 41 | "description": "Connect selected terms to post (1 for yes, 0 for no)" |
| 42 | }, |
| 43 | "bidirectional_target": { "$ref": "#/definitions/bidirectional_target" } |
| 44 | } |
| 45 | } |
| 46 |