Skip to content

Commit 078eb20

Browse files
authored
add explicit schema for field.strings (#229)
1 parent 845bd59 commit 078eb20

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

schemas/field.json

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,30 @@
134134
"properties": {
135135
"options": {
136136
"description": "Translatable options (combo fields).",
137-
"type": "object"
137+
"type": "object",
138+
"additionalProperties": {
139+
"oneOf": [
140+
{ "type": "string" },
141+
{
142+
"type": "object",
143+
"properties": {
144+
"title": { "type": "string" },
145+
"description": { "type": "string" }
146+
}
147+
}
148+
]
149+
}
150+
},
151+
"types": {
152+
"description": "Translatable types (directionalCombo and access only).",
153+
"type": "object",
154+
"additionalProperties": { "type": "string" }
155+
},
156+
"placeholders": {
157+
"description": "Translatable placeholders (address only).",
158+
"type": "object",
159+
"additionalProperties": { "type": "string" }
138160
}
139-
},
140-
"additionalProperties": {
141-
"description": "Specialized fields can request translation of arbitrary strings",
142-
"type": "object"
143161
}
144162
},
145163
"stringsCrossReference": {

0 commit comments

Comments
 (0)