Skip to content

Commit 95a15a8

Browse files
committed
Bump version to 2.14.3 and update dist files
1 parent 18b91ac commit 95a15a8

File tree

5 files changed

+2
-20
lines changed

5 files changed

+2
-20
lines changed

dist/react-json-form.cjs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4175,7 +4175,6 @@ function DataValidator(schema) {
41754175
let next_type = getSchemaType(next_schema);
41764176
let minItems = getKeyword(schema, 'minItems', 'min_items');
41774177
let maxItems = getKeyword(schema, 'maxItems', 'max_items');
4178-
let choices = getKeyword(schema.items, 'choices', 'enum');
41794178
if (minItems && data.length < parseInt(minItems)) this.addError(coords, 'Minimum ' + minItems + ' items required.');
41804179
if (maxItems && data.length > parseInt(maxItems)) this.addError(coords, 'Maximum ' + maxItems + ' items allowed.');
41814180

@@ -4189,11 +4188,6 @@ function DataValidator(schema) {
41894188
}
41904189
}
41914190

4192-
if (choices) {
4193-
let invalid_choice = data.find(i => choices.indexOf(i) === -1);
4194-
if (typeof invalid_choice !== 'undefined') this.addError(coords, 'Invalid choice + "' + invalid_choice + '"');
4195-
}
4196-
41974191
let next_validator = this.getValidator(next_type); // currently allOf is not supported in array items
41984192

41994193
if (next_type === 'allOf') next_validator = null;

dist/react-json-form.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-json-form.modern.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4169,7 +4169,6 @@ function DataValidator(schema) {
41694169
let next_type = getSchemaType(next_schema);
41704170
let minItems = getKeyword(schema, 'minItems', 'min_items');
41714171
let maxItems = getKeyword(schema, 'maxItems', 'max_items');
4172-
let choices = getKeyword(schema.items, 'choices', 'enum');
41734172
if (minItems && data.length < parseInt(minItems)) this.addError(coords, 'Minimum ' + minItems + ' items required.');
41744173
if (maxItems && data.length > parseInt(maxItems)) this.addError(coords, 'Maximum ' + maxItems + ' items allowed.');
41754174

@@ -4183,11 +4182,6 @@ function DataValidator(schema) {
41834182
}
41844183
}
41854184

4186-
if (choices) {
4187-
let invalid_choice = data.find(i => choices.indexOf(i) === -1);
4188-
if (typeof invalid_choice !== 'undefined') this.addError(coords, 'Invalid choice + "' + invalid_choice + '"');
4189-
}
4190-
41914185
let next_validator = this.getValidator(next_type); // currently allOf is not supported in array items
41924186

41934187
if (next_type === 'allOf') next_validator = null;

dist/react-json-form.module.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4169,7 +4169,6 @@ function DataValidator(schema) {
41694169
let next_type = getSchemaType(next_schema);
41704170
let minItems = getKeyword(schema, 'minItems', 'min_items');
41714171
let maxItems = getKeyword(schema, 'maxItems', 'max_items');
4172-
let choices = getKeyword(schema.items, 'choices', 'enum');
41734172
if (minItems && data.length < parseInt(minItems)) this.addError(coords, 'Minimum ' + minItems + ' items required.');
41744173
if (maxItems && data.length > parseInt(maxItems)) this.addError(coords, 'Maximum ' + maxItems + ' items allowed.');
41754174

@@ -4183,11 +4182,6 @@ function DataValidator(schema) {
41834182
}
41844183
}
41854184

4186-
if (choices) {
4187-
let invalid_choice = data.find(i => choices.indexOf(i) === -1);
4188-
if (typeof invalid_choice !== 'undefined') this.addError(coords, 'Invalid choice + "' + invalid_choice + '"');
4189-
}
4190-
41914185
let next_validator = this.getValidator(next_type); // currently allOf is not supported in array items
41924186

41934187
if (next_type === 'allOf') next_validator = null;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bhch/react-json-form",
3-
"version": "2.14.2",
3+
"version": "2.14.3",
44
"description": "Create forms using JSON Schema",
55
"publishConfig": {
66
"access": "public"

0 commit comments

Comments
 (0)