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
relationship.schema.json
32 lines
| 1 | { |
| 2 | "title": "SCF Relationship Field Fragment", |
| 3 | "description": "Type-specific properties for relationship fields", |
| 4 | "type": "object", |
| 5 | "properties": { |
| 6 | "type": { |
| 7 | "enum": [ "relationship" ] |
| 8 | }, |
| 9 | "post_type": { "$ref": "#/definitions/post_type" }, |
| 10 | "taxonomy": { "$ref": "#/definitions/taxonomy_filter" }, |
| 11 | "min": { "$ref": "#/definitions/min" }, |
| 12 | "max": { "$ref": "#/definitions/max" }, |
| 13 | "filters": { |
| 14 | "type": "array", |
| 15 | "default": [ "search", "post_type", "taxonomy" ], |
| 16 | "description": "Enabled filters for the relationship field UI" |
| 17 | }, |
| 18 | "elements": { |
| 19 | "type": "array", |
| 20 | "default": [], |
| 21 | "description": "Additional elements to display (e.g., 'featured_image')" |
| 22 | }, |
| 23 | "return_format": { |
| 24 | "type": "string", |
| 25 | "enum": [ "object", "id" ], |
| 26 | "default": "object", |
| 27 | "description": "Value returned (WP_Post object or post ID)" |
| 28 | }, |
| 29 | "bidirectional_target": { "$ref": "#/definitions/bidirectional_target" } |
| 30 | } |
| 31 | } |
| 32 |