From 9f5f5d7e5443eabb14131bf49ebb511ba92bc852 Mon Sep 17 00:00:00 2001 From: vishal singh Date: Thu, 22 Aug 2024 22:01:55 +0530 Subject: [PATCH] Change Definition struct 'Type' field to support multiple data types for union parameters --- jsonschema/json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonschema/json.go b/jsonschema/json.go index 7fd1e11bf..3934f7b1f 100644 --- a/jsonschema/json.go +++ b/jsonschema/json.go @@ -22,7 +22,7 @@ const ( // It is fairly limited, and you may have better luck using a third-party library. type Definition struct { // Type specifies the data type of the schema. - Type DataType `json:"type,omitempty"` + Type any `json:"type,omitempty"` // Description is the description of the schema. Description string `json:"description,omitempty"` // Enum is used to restrict a value to a fixed set of values. It must be an array with at least