From 6cd90d397b9b6fae8cb0dc124de8d8f69ef61b64 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Thu, 5 Oct 2023 05:34:55 -0700 Subject: [PATCH] Make elements field required for single-step-form Signed-off-by: Tamal Saha --- types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.go b/types.go index 7440660..6718aa6 100644 --- a/types.go +++ b/types.go @@ -614,7 +614,7 @@ type SingleStepForm struct { Schema *SchemaRef `json:"schema,omitempty"` If string `json:"if,omitempty"` Discriminator map[string]Discriminator `json:"discriminator,omitempty"` - Elements []UnionElement `json:"elements,omitempty"` + Elements []UnionElement `json:"elements"` Element *SingleStepFormElement `json:"element,omitempty"` CustomClass string `json:"customClass,omitempty"` ShowLabel bool `json:"show_label,omitempty"`