accordion.json
2 months ago
button_group.json
2 months ago
checkbox.json
2 months ago
clone.json
2 months ago
color_picker.json
2 months ago
date_picker.json
2 months ago
date_time_picker.json
2 months ago
email.json
2 months ago
file.json
2 months ago
flexible_content.json
2 months ago
gallery.json
2 months ago
google_map.json
2 months ago
group.json
2 months ago
icon_picker.json
2 months ago
image.json
2 months ago
link.json
2 months ago
message.json
2 months ago
number.json
2 months ago
oembed.json
2 months ago
page_link.json
2 months ago
password.json
2 months ago
post_object.json
2 months ago
radio.json
2 months ago
range.json
2 months ago
relationship.json
2 months ago
repeater.json
2 months ago
select.json
2 months ago
tab.json
2 months ago
taxonomy.json
2 months ago
text.json
2 months ago
textarea.json
2 months ago
time_picker.json
2 months ago
true_false.json
2 months ago
url.json
2 months ago
user.json
2 months ago
wysiwyg.json
2 months ago
number.json
110 lines
| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "type": "object", |
| 4 | "additionalProperties": false, |
| 5 | "properties": { |
| 6 | "label": { |
| 7 | "type": "string", |
| 8 | "description": "The field label displayed in the edit screen", |
| 9 | "minLength": 1 |
| 10 | }, |
| 11 | "type": { |
| 12 | "type": "string", |
| 13 | "enum": [ |
| 14 | "number" |
| 15 | ], |
| 16 | "description": "Field type identifier. Must be \"number\" for this field type." |
| 17 | }, |
| 18 | "name": { |
| 19 | "type": "string", |
| 20 | "description": "The field name used to save/load data. Auto-generated from label if not provided.", |
| 21 | "pattern": "^[a-z_][a-z0-9_]*$" |
| 22 | }, |
| 23 | "key": { |
| 24 | "type": "string", |
| 25 | "description": "Unique field key. Auto-generated if not provided.", |
| 26 | "pattern": "^field_[a-z0-9]+$" |
| 27 | }, |
| 28 | "instructions": { |
| 29 | "type": "string", |
| 30 | "description": "Instructions displayed to editors below the field label" |
| 31 | }, |
| 32 | "required": { |
| 33 | "type": "boolean", |
| 34 | "description": "Whether this field is required", |
| 35 | "default": false |
| 36 | }, |
| 37 | "conditional_logic": { |
| 38 | "type": [ |
| 39 | "boolean", |
| 40 | "array" |
| 41 | ], |
| 42 | "description": "Conditional logic rules. Set to false to disable, or provide rules array.", |
| 43 | "default": false |
| 44 | }, |
| 45 | "wrapper": { |
| 46 | "type": "object", |
| 47 | "description": "HTML wrapper attributes", |
| 48 | "properties": { |
| 49 | "width": { |
| 50 | "type": "string", |
| 51 | "description": "Width percentage (e.g., \"50\")" |
| 52 | }, |
| 53 | "class": { |
| 54 | "type": "string", |
| 55 | "description": "Custom CSS classes" |
| 56 | }, |
| 57 | "id": { |
| 58 | "type": "string", |
| 59 | "description": "Custom HTML ID" |
| 60 | } |
| 61 | } |
| 62 | }, |
| 63 | "default_value": { |
| 64 | "type": [ |
| 65 | "number", |
| 66 | "string", |
| 67 | "null" |
| 68 | ], |
| 69 | "description": "Default numeric value when creating new content" |
| 70 | }, |
| 71 | "placeholder": { |
| 72 | "type": "string", |
| 73 | "description": "Placeholder text shown in empty fields" |
| 74 | }, |
| 75 | "prepend": { |
| 76 | "type": "string", |
| 77 | "description": "Text to prepend before the input" |
| 78 | }, |
| 79 | "append": { |
| 80 | "type": "string", |
| 81 | "description": "Text to append after the input" |
| 82 | }, |
| 83 | "maxlength": { |
| 84 | "type": "integer", |
| 85 | "description": "Maximum character length (if applicable)", |
| 86 | "minimum": 1 |
| 87 | }, |
| 88 | "allow_in_bindings": { |
| 89 | "type": "boolean", |
| 90 | "description": "Whether this field can be used in block bindings", |
| 91 | "default": false |
| 92 | }, |
| 93 | "min": { |
| 94 | "type": "number", |
| 95 | "description": "Minimum value allowed" |
| 96 | }, |
| 97 | "max": { |
| 98 | "type": "number", |
| 99 | "description": "Maximum value allowed" |
| 100 | }, |
| 101 | "step": { |
| 102 | "type": "number", |
| 103 | "description": "Step size for incrementing values (e.g., 0.01 for decimals, 1 for integers)" |
| 104 | } |
| 105 | }, |
| 106 | "required": [ |
| 107 | "label", |
| 108 | "type" |
| 109 | ] |
| 110 | } |