Skip to content

Commit

Permalink
Change Definition struct 'Type' field to support multiple data types …
Browse files Browse the repository at this point in the history
…for union parameters
  • Loading branch information
vish0l committed Aug 22, 2024
1 parent 6d02119 commit 9f5f5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonschema/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f5f5d7

Please sign in to comment.