From 6000821dd494a88e826517e8ff7c9c357d4628d6 Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Thu, 29 Feb 2024 11:55:09 -0800 Subject: [PATCH] Show validation errors after full validation call --- src/renderer/src/stories/JSONSchemaForm.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/src/stories/JSONSchemaForm.js b/src/renderer/src/stories/JSONSchemaForm.js index 6c07ce5c7..a3d425cc4 100644 --- a/src/renderer/src/stories/JSONSchemaForm.js +++ b/src/renderer/src/stories/JSONSchemaForm.js @@ -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;