Skip to content

Commit

Permalink
fix(schema): allow rows to be empty in form schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Kiefer committed Nov 1, 2023
1 parent 866b1ab commit 71ffc5c
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/form-js/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ All notable changes to [form-js](https://github.com/bpmn-io/form-js) are documen

___Note:__ Yet to be released changes appear here._

### JSON Schema

* `FEAT`: initial release, moved from https://github.com/pinussilvestrus/form-json-schema

## 1.4.0

### General
Expand Down Expand Up @@ -37,10 +41,6 @@ ___Note:__ Yet to be released changes appear here._

`FEAT`: provide `additionalModules` to both viewer and editor ([#776](https://github.com/bpmn-io/form-js/pull/776))

### JSON Schema

* `FEAT`: initial release, moved from https://github.com/pinussilvestrus/form-json-schema

## 1.3.3

## General
Expand Down
2 changes: 1 addition & 1 deletion packages/form-json-schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bpmn-io/form-json-schema",
"version": "1.3.3",
"version": "1.4.0",
"description": "JSON Schema for form-js",
"files": [
"resources"
Expand Down
2 changes: 1 addition & 1 deletion packages/form-json-schema/src/defs/layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"properties": {
"row": {
"$id": "/#component/layout/row",
"type": "string",
"type": [ "string", "null" ],
"description": "Row in which a form field is placed."
},
"columns": {
Expand Down
15 changes: 15 additions & 0 deletions packages/form-json-schema/test/fixtures/layout-empty-row.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export const form = {
type: 'default',
components: [
{
type: 'textfield',
key: 'firstName',
layout: {
row: null,
columns: 12
}
}
]
};

export const errors = null;
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ describe('validation', function() {
testForm('validate-validationType');


testForm('layout-empty-row');


describe('rules - required properties', function() {


Expand Down

0 comments on commit 71ffc5c

Please sign in to comment.