Skip to content

Commit

Permalink
Show validation errors after full validation call
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Feb 29, 2024
1 parent 93c01ab commit 6000821
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/src/stories/JSONSchemaForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ export class JSONSchemaForm extends LitElement {
};

validate = async (resolved = this.resolved) => {

if (this.validateEmptyValues === false) this.validateEmptyValues = true

// Validate against the entire JSON Schema
const copy = structuredClone(resolved);
delete copy.__disabled;
Expand Down

0 comments on commit 6000821

Please sign in to comment.