Skip to content

Commit

Permalink
Correct definition of MultipleOf and ExclusiveMaximum. Both should be…
Browse files Browse the repository at this point in the history
  • Loading branch information
deep-creek authored and omissis committed Sep 30, 2023
1 parent 3457924 commit 94e03f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/schemas/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ type Type struct {
Version string `json:"$schema,omitempty"` // Section 6.1.
Ref string `json:"$ref,omitempty"` // Section 7.
// RFC draft-wright-json-schema-validation-00, section 5.
MultipleOf int `json:"multipleOf,omitempty"` // Section 5.1.
MultipleOf float64 `json:"multipleOf,omitempty"` // Section 5.1.
Maximum float64 `json:"maximum,omitempty"` // Section 5.2.
ExclusiveMaximum bool `json:"exclusiveMaximum,omitempty"` // Section 5.3.
ExclusiveMaximum float64 `json:"exclusiveMaximum,omitempty"` // Section 5.3.
Minimum float64 `json:"minimum,omitempty"` // Section 5.4.
ExclusiveMinimum bool `json:"exclusiveMinimum,omitempty"` // Section 5.5.
MaxLength int `json:"maxLength,omitempty"` // Section 5.6.
Expand Down

0 comments on commit 94e03f9

Please sign in to comment.