Skip to content

Commit e252511

Browse files
jtarchiefcce
authored andcommitted
add enum tag to jsonschema (sashabaranov#962)
* fix jsonschema tests * ensure all run during PR Github Action * add test for struct to schema * add support for enum tag * support nullable tag
1 parent 0c5bbd8 commit e252511

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jsonschema/json.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ type Definition struct {
5454
// Defs A map of reusable schema definitions.
5555
Defs map[string]Definition `json:"$defs,omitempty"`
5656
// MaxContains specifies the maximum number of elements in an array that can match the schema.
57+
// MinContains specifies the minimum number of elements in an array that can match the schema.
5758
MinContains int `json:"minContains,omitempty"`
5859
}
5960

0 commit comments

Comments
 (0)