From 94e03f9ee7aab3c9f4870ac31a1f28d333ac72f2 Mon Sep 17 00:00:00 2001 From: deep-creek <125659866+deep-creek@users.noreply.github.com> Date: Fri, 8 Sep 2023 11:25:54 +0200 Subject: [PATCH] Correct definition of MultipleOf and ExclusiveMaximum. Both should be float64 according to http://json-schema.org/draft/2020-12/json-schema-validation.html#name-multipleof --- pkg/schemas/model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/schemas/model.go b/pkg/schemas/model.go index 82c0d248..9872fed7 100644 --- a/pkg/schemas/model.go +++ b/pkg/schemas/model.go @@ -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.