Skip to content

Commit

Permalink
fix: schema.required is not a mandatory property
Browse files Browse the repository at this point in the history
  • Loading branch information
wbabyte committed Sep 26, 2024
1 parent 5c91462 commit a25fe13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/organisms/gv-resources/gv-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ export class GvResources extends KeyboardElement(LitElement) {
};

const schema = typeof resourceType.schema === 'string' ? JSON.parse(resourceType.schema) : resourceType.schema;
const req = schema.required ? schema.required : [];

return {
properties: { ...defaultSchema.properties, ...schema.properties },
required: [...defaultSchema.required, ...schema.required],
required: [...defaultSchema.required, ...req],
};
}

Expand Down

0 comments on commit a25fe13

Please sign in to comment.