Skip to content

Commit 789544d

Browse files
committed
add MaxContains/MinContains support
1 parent a931bf7 commit 789544d

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
@@ -48,6 +48,8 @@ type Definition struct {
4848
AdditionalProperties any `json:"additionalProperties,omitempty"`
4949
// Whether the schema is nullable or not.
5050
Nullable bool `json:"nullable,omitempty"`
51+
// MaxContains specifies the maximum number of elements in an array that can match the schema.
52+
MinContains int `json:"minContains,omitempty"`
5153
}
5254

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

0 commit comments

Comments
 (0)