field-fragments
6 months ago
fields
2 months ago
common.schema.json
6 months ago
field-group.schema.json
2 months ago
field.schema.json
6 months ago
internal-properties.schema.json
6 months ago
post-type.schema.json
2 months ago
scf-identifier.schema.json
6 months ago
taxonomy.schema.json
2 months ago
ui-options-page.schema.json
6 months ago
internal-properties.schema.json
74 lines
| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "https://raw.githubusercontent.com/WordPress/secure-custom-fields/trunk/schemas/internal-properties.schema.json", |
| 4 | "title": "SCF Internal Properties", |
| 5 | "description": "Internal properties present in SCF entities. These properties are managed by the system and appear in GET/LIST/CREATE/UPDATE/IMPORT/DUPLICATE outputs, but are stripped during EXPORT.", |
| 6 | "definitions": { |
| 7 | "ID": { |
| 8 | "type": "integer", |
| 9 | "minimum": 1, |
| 10 | "description": "WordPress post ID. Present in GET/LIST/CREATE/UPDATE/IMPORT/DUPLICATE outputs." |
| 11 | }, |
| 12 | "_valid": { |
| 13 | "type": [ "boolean", "integer" ], |
| 14 | "description": "Validation cache flag. Indicates whether the entity passed validation. Can be boolean or integer (0/1)." |
| 15 | }, |
| 16 | "local": { |
| 17 | "type": "string", |
| 18 | "enum": [ "json" ], |
| 19 | "description": "Source indicator. Present only if entity is locally-defined (e.g., from local JSON files). Stripped during export." |
| 20 | }, |
| 21 | "not_registered": { |
| 22 | "type": "boolean", |
| 23 | "description": "Flag indicating that this entity could not be registered because another one with the same key already exists. Present only when registration was skipped." |
| 24 | }, |
| 25 | "prefix": { |
| 26 | "type": "string", |
| 27 | "description": "Internal prefix used for field naming during rendering." |
| 28 | }, |
| 29 | "value": { |
| 30 | "description": "Current field value. Type varies by field type." |
| 31 | }, |
| 32 | "id": { |
| 33 | "type": "string", |
| 34 | "description": "HTML element ID attribute for the field input." |
| 35 | }, |
| 36 | "class": { |
| 37 | "type": "string", |
| 38 | "description": "HTML element class attribute for the field input." |
| 39 | }, |
| 40 | "_name": { |
| 41 | "type": "string", |
| 42 | "description": "Internal field name used during form processing." |
| 43 | }, |
| 44 | "allow_in_bindings": { |
| 45 | "type": "boolean", |
| 46 | "description": "Whether the field value can be used in block bindings." |
| 47 | }, |
| 48 | "fieldInternalProperties": { |
| 49 | "type": "object", |
| 50 | "description": "Internal properties for field entities", |
| 51 | "properties": { |
| 52 | "ID": { "$ref": "#/definitions/ID" }, |
| 53 | "_valid": { "$ref": "#/definitions/_valid" }, |
| 54 | "prefix": { "$ref": "#/definitions/prefix" }, |
| 55 | "value": { "$ref": "#/definitions/value" }, |
| 56 | "id": { "$ref": "#/definitions/id" }, |
| 57 | "class": { "$ref": "#/definitions/class" }, |
| 58 | "_name": { "$ref": "#/definitions/_name" }, |
| 59 | "allow_in_bindings": { "$ref": "#/definitions/allow_in_bindings" } |
| 60 | } |
| 61 | }, |
| 62 | "internalProperties": { |
| 63 | "type": "object", |
| 64 | "description": "Internal properties for internal post types (field groups, taxonomies, options pages)", |
| 65 | "properties": { |
| 66 | "ID": { "$ref": "#/definitions/ID" }, |
| 67 | "_valid": { "$ref": "#/definitions/_valid" }, |
| 68 | "local": { "$ref": "#/definitions/local" }, |
| 69 | "not_registered": { "$ref": "#/definitions/not_registered" } |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 |