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
user.schema.json
25 lines
| 1 | { |
| 2 | "title": "SCF User Field Fragment", |
| 3 | "description": "Type-specific properties for user selection fields", |
| 4 | "type": "object", |
| 5 | "properties": { |
| 6 | "type": { |
| 7 | "enum": [ "user" ] |
| 8 | }, |
| 9 | "role": { |
| 10 | "type": "string", |
| 11 | "default": "", |
| 12 | "description": "Limit to specific user role (empty for all roles)" |
| 13 | }, |
| 14 | "multiple": { "$ref": "#/definitions/multiple" }, |
| 15 | "allow_null": { "$ref": "#/definitions/allow_null" }, |
| 16 | "return_format": { |
| 17 | "type": "string", |
| 18 | "enum": [ "array", "object", "id" ], |
| 19 | "default": "array", |
| 20 | "description": "Value returned (user array, WP_User object, or user ID)" |
| 21 | }, |
| 22 | "bidirectional_target": { "$ref": "#/definitions/bidirectional_target" } |
| 23 | } |
| 24 | } |
| 25 |