We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 643da8d commit fddc507Copy full SHA for fddc507
jsonschema/json.go
@@ -46,6 +46,10 @@ type Definition struct {
46
// additionalProperties: false
47
// additionalProperties: jsonschema.Definition{Type: jsonschema.String}
48
AdditionalProperties any `json:"additionalProperties,omitempty"`
49
+ // MaxContains specifies the maximum number of elements in an array that can match the schema.
50
+ MaxContains int `json:"maxContains,omitempty"`
51
+ // MinContains specifies the minimum number of elements in an array that can match the schema.
52
+ MinContains int `json:"minContains,omitempty"`
53
}
54
55
func (d *Definition) MarshalJSON() ([]byte, error) {
0 commit comments