Skip to content

Commit 11cee5b

Browse files
Add JSON schema composition keys
1 parent 500072a commit 11cee5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/jsonschema/json_schema.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ type JSONSchema struct {
2424
InternalType string `json:"internal_type,omitempty"`
2525
Index int `json:"index,omitempty"`
2626

27+
OneOf []*JSONSchema `json:"oneOf,omitempty"`
28+
AllOf []*JSONSchema `json:"allOf,omitempty"`
29+
AnyOf []*JSONSchema `json:"anyOf,omitempty"`
30+
Not *JSONSchema `json:"not,omitempty"`
31+
2732
Type ItemType `json:"type"`
2833
StringItem
2934
NumberItem

0 commit comments

Comments
 (0)