Skip to content

Commit 7efcdee

Browse files
committed
Bump version to 2.7.2 and update dist files
1 parent 96557e6 commit 7efcdee

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/react-json-form.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3815,7 +3815,7 @@ function DataValidator(schema) {
38153815
if (next_schema.hasOwnProperty('$ref')) next_schema = this.getRef(next_schema.$ref);
38163816

38173817
if (schema.hasOwnProperty('required') && Array.isArray(schema.required)) {
3818-
if (schema.required.indexOf(key) > -1) next_schema['required'] = true;
3818+
if (schema.required.indexOf(key) > -1 && !next_schema.hasOwnProperty('required')) next_schema['required'] = true;
38193819
}
38203820

38213821
let next_type = normalizeKeyword(next_schema.type);

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3809,7 +3809,7 @@ function DataValidator(schema) {
38093809
if (next_schema.hasOwnProperty('$ref')) next_schema = this.getRef(next_schema.$ref);
38103810

38113811
if (schema.hasOwnProperty('required') && Array.isArray(schema.required)) {
3812-
if (schema.required.indexOf(key) > -1) next_schema['required'] = true;
3812+
if (schema.required.indexOf(key) > -1 && !next_schema.hasOwnProperty('required')) next_schema['required'] = true;
38133813
}
38143814

38153815
let next_type = normalizeKeyword(next_schema.type);

dist/react-json-form.module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3809,7 +3809,7 @@ function DataValidator(schema) {
38093809
if (next_schema.hasOwnProperty('$ref')) next_schema = this.getRef(next_schema.$ref);
38103810

38113811
if (schema.hasOwnProperty('required') && Array.isArray(schema.required)) {
3812-
if (schema.required.indexOf(key) > -1) next_schema['required'] = true;
3812+
if (schema.required.indexOf(key) > -1 && !next_schema.hasOwnProperty('required')) next_schema['required'] = true;
38133813
}
38143814

38153815
let next_type = normalizeKeyword(next_schema.type);

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.7.1",
3+
"version": "2.7.2",
44
"description": "Create forms using JSON Schema",
55
"publishConfig": {
66
"access": "public"

0 commit comments

Comments
 (0)