Fix required for JsonSchema component (fixes #28)

This commit is contained in:
Roman Hotsiy 2016-03-02 08:56:09 +04:00
parent b054e62e0a
commit 3f698caabe

View File

@ -59,8 +59,8 @@ export default class JsonSchema extends BaseComponent {
this.pointer = schema._pointer || this.pointer;
this.requiredMap = {};
if (this.schema.required) {
this.schema.required.forEach(prop => this.requiredMap[prop] = true);
if (this.componentSchema.required) {
this.componentSchema.required.forEach(prop => this.requiredMap[prop] = true);
}
if (!schema.properties) {