Skip to content

Commit ac68ce9

Browse files
committed
add MaxContains/MinContains support
1 parent c4273cb commit ac68ce9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jsonschema/json.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ type Definition struct {
5353
Ref string `json:"$ref,omitempty"`
5454
// Defs A map of reusable schema definitions.
5555
Defs map[string]Definition `json:"$defs,omitempty"`
56+
// MaxContains specifies the maximum number of elements in an array that can match the schema.
57+
MinContains int `json:"minContains,omitempty"`
5658
}
5759

5860
func (d *Definition) MarshalJSON() ([]byte, error) {

0 commit comments

Comments
 (0)