Skip to content

Commit

Permalink
🐛 color fields missing from fields list
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Aug 26, 2024
1 parent 146111f commit 36c6910
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
9 changes: 8 additions & 1 deletion kirby4-blueprints.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
{
"$ref": "#/$defs/fields/checkboxes"
},
{
"$ref": "#/$defs/fields/color"
},
{
"$ref": "#/$defs/fields/date"
},
Expand Down Expand Up @@ -1669,7 +1672,8 @@
"mode": {
"enum": [
"picker",
"input"
"input",
"options"
],
"default": "picker"
},
Expand Down Expand Up @@ -3962,6 +3966,9 @@
{
"$ref": "#/$defs/fields/checkboxes"
},
{
"$ref": "#/$defs/fields/color"
},
{
"$ref": "#/$defs/fields/date"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kirby3-schema",
"version": "4.1.0",
"version": "4.1.1",
"description": "",
"main": "index.js",
"directories": {
Expand Down
4 changes: 4 additions & 0 deletions tests/fields.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ test('checkboxes', () => {
expect(validate('./tests/fixtures/fields/checkboxes.yml')).toBeTruthy();
});

test('color', () => {
expect(validate('./tests/fixtures/fields/color.yml')).toBeTruthy();
});

test('date', () => {
expect(validate('./tests/fixtures/fields/date.yml')).toBeTruthy();
});
Expand Down
5 changes: 5 additions & 0 deletions tests/fixtures/fields/color.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: color
options:
type: query
alpha: true
mode: picker

0 comments on commit 36c6910

Please sign in to comment.