Skip to content

Commit

Permalink
Merge pull request #6 from saicheck2233/issue#95and108
Browse files Browse the repository at this point in the history
issue#95&brutusin#108
  • Loading branch information
saicheck2233 authored Jun 27, 2023
2 parents 2c4d122 + 0504029 commit ba4f9ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/js/brutusin-json-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,15 @@ if (typeof brutusin === "undefined") {
if (parentSchema && parentSchema.type === "object") {
if (parentSchema.required) {
return BrutusinForms.messages["required"];
} else if (parentSchema.requiredProperties) {
for (var i = 0; i < parentSchema.requiredProperties.length; i++) {
if (parentSchema.requiredProperties[i] === s.$id.substring(2)) {
return BrutusinForms.messages["required"];
}
}
} else {
for (var prop in parentObject) {
if (parentObject[prop] !== null) {
if (parentObject[prop] === null) {
return BrutusinForms.messages["required"];
}
}
Expand Down

0 comments on commit ba4f9ed

Please sign in to comment.