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
post-object.schema.json
27 lines
| 1 | { |
| 2 | "title": "SCF Post Object Field Fragment", |
| 3 | "description": "Type-specific properties for post object fields", |
| 4 | "type": "object", |
| 5 | "properties": { |
| 6 | "type": { |
| 7 | "enum": [ "post_object" ] |
| 8 | }, |
| 9 | "post_type": { "$ref": "#/definitions/post_type" }, |
| 10 | "taxonomy": { "$ref": "#/definitions/taxonomy_filter" }, |
| 11 | "allow_null": { "$ref": "#/definitions/allow_null" }, |
| 12 | "multiple": { "$ref": "#/definitions/multiple" }, |
| 13 | "return_format": { |
| 14 | "type": "string", |
| 15 | "enum": [ "object", "id" ], |
| 16 | "default": "object", |
| 17 | "description": "Value returned (WP_Post object or post ID)" |
| 18 | }, |
| 19 | "ui": { |
| 20 | "type": "integer", |
| 21 | "default": 1, |
| 22 | "description": "Use enhanced Select2 UI (1 for yes, 0 for no)" |
| 23 | }, |
| 24 | "bidirectional_target": { "$ref": "#/definitions/bidirectional_target" } |
| 25 | } |
| 26 | } |
| 27 |