Skip to content

Commit

Permalink
Merge pull request #15 from gnuj/enhance-schema
Browse files Browse the repository at this point in the history
✨ Add localizable labels
  • Loading branch information
bnomei authored Mar 8, 2023
2 parents fdb63de + cd9fdd9 commit a3541fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions kirby3-blueprints.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
]
},
"label": {
"$ref": "#/$defs/nonEmptyString"
"$ref": "#/$defs/field-properties/@label"
},
"fieldsets": {
"type": "array",
Expand Down Expand Up @@ -356,7 +356,7 @@
"type": "object",
"properties": {
"label": {
"$ref": "#/$defs/nonEmptyString"
"$ref": "#/$defs/field-properties/@label"
},
"text": {
"$ref": "#/$defs/nonEmptyString"
Expand All @@ -382,7 +382,7 @@
"type": "object",
"properties": {
"label": {
"$ref": "#/$defs/nonEmptyString"
"$ref": "#/$defs/field-properties/@label"
}
}
},
Expand Down Expand Up @@ -439,7 +439,7 @@
"type": "object",
"properties": {
"label": {
"$ref": "#/$defs/nonEmptyString"
"$ref": "#/$defs/field-properties/@label"
},
"icon": {
"$ref": "#/$defs/blueprint-properties/@icon"
Expand Down Expand Up @@ -1191,7 +1191,7 @@
"description": "Optional info text setup"
},
"@label": {
"$ref": "#/$defs/nonEmptyString",
"$ref": "#/$defs/stringOrTranslated",
"description": "label is the new official replacement for headline"
},
"@layout": {
Expand Down
5 changes: 4 additions & 1 deletion tests/fixtures/blueprints/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ sections:
type: fields
fields:
text:
label: Tex
label:
en: Localized Text
de: Übersetzter Text
fr: Texte localisé
type: text

0 comments on commit a3541fd

Please sign in to comment.