Skip to content

Commit ba4f9ed

Browse files
authored
Merge pull request #6 from saicheck2233/issue#95and108
issue#95&brutusin#108
2 parents 2c4d122 + 0504029 commit ba4f9ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/js/brutusin-json-forms.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,15 @@ if (typeof brutusin === "undefined") {
253253
if (parentSchema && parentSchema.type === "object") {
254254
if (parentSchema.required) {
255255
return BrutusinForms.messages["required"];
256+
} else if (parentSchema.requiredProperties) {
257+
for (var i = 0; i < parentSchema.requiredProperties.length; i++) {
258+
if (parentSchema.requiredProperties[i] === s.$id.substring(2)) {
259+
return BrutusinForms.messages["required"];
260+
}
261+
}
256262
} else {
257263
for (var prop in parentObject) {
258-
if (parentObject[prop] !== null) {
264+
if (parentObject[prop] === null) {
259265
return BrutusinForms.messages["required"];
260266
}
261267
}

0 commit comments

Comments
 (0)