From 5dfcb2bfedd457507af1577935595106c57420fd Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Wed, 10 Jan 2018 15:44:27 +0100 Subject: [PATCH] Update: Service provider config validations (refs #37) --- schemas/core/service_provider_config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/schemas/core/service_provider_config.go b/schemas/core/service_provider_config.go index 115aee9..cda17a2 100644 --- a/schemas/core/service_provider_config.go +++ b/schemas/core/service_provider_config.go @@ -7,18 +7,18 @@ import ( ) type supported struct { - Supported bool `json:"supported" validate:"required"` + Supported bool `json:"supported"` } type bulk struct { - Supported bool `json:"supported" validate:"required"` - MaxOperations int `json:"maxOperations" validate:"required"` - MaxPayloadSize int `json:"maxPayloadSize" validate:"required"` + Supported bool `json:"supported"` + MaxOperations int `json:"maxOperations" validate:"gte=0"` + MaxPayloadSize int `json:"maxPayloadSize" validate:"gte=0"` } type filter struct { - Supported bool `json:"supported" validate:"required"` - MaxResults int `json:"maxResults" validate:"required"` + Supported bool `json:"supported"` + MaxResults int `json:"maxResults" validate:"gte=0"` } // AuthenticationScheme is ...