This commit is contained in:
sujit
2025-09-18 18:26:35 +05:45
parent 1b3ebcc325
commit 33857e32d1
55 changed files with 757 additions and 896 deletions

View File

@@ -17,7 +17,7 @@ type ValidationInfo struct {
Maximum *jsonschema.Rat
Pattern string
Format string
Enum []interface{}
Enum []any
MultipleOf *jsonschema.Rat
ExclusiveMin *jsonschema.Rat
ExclusiveMax *jsonschema.Rat
@@ -26,7 +26,7 @@ type ValidationInfo struct {
UniqueItems bool
MinProperties *float64
MaxProperties *float64
Const interface{}
Const any
// Advanced JSON Schema 2020-12 validations
AllOf []*jsonschema.Schema
@@ -57,8 +57,8 @@ type ValidationInfo struct {
// Metadata
Title *string
Description *string
Default interface{}
Examples []interface{}
Default any
Examples []any
Deprecated *bool
ReadOnly *bool
WriteOnly *bool