Skip to content

Commit

Permalink
fix: jdorn#749
Browse files Browse the repository at this point in the history
  • Loading branch information
gbisurgi committed Mar 31, 2021
1 parent f3bcdf2 commit 5d6d1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ export class Validator {
}

_validateV3Required (schema, value, path) {
if ((typeof schema.required !== 'undefined' && schema.required === true) || (typeof schema.required === 'undefined' && this.jsoneditor.options.required_by_default === true)) {
if (((typeof schema.required !== 'undefined' && schema.required === true) || (typeof schema.required === 'undefined' && this.jsoneditor.options.required_by_default === true)) && (schema.type !== 'info')) {
return [{
path,
property: 'required',
Expand Down

0 comments on commit 5d6d1d2

Please sign in to comment.