Skip to content

Commit

Permalink
Fix: Removed validator required from type bool field
Browse files Browse the repository at this point in the history
  • Loading branch information
samechelon committed Dec 4, 2017
1 parent 5173365 commit 6f23992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schemas/core/resource_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package core
// SchemaExtension ...
type SchemaExtension struct {
Schema string `json:"schema" validate:"urn,required"`
Required bool `json:"required" validate:"required"`
Required bool `json:"required"`
}

// ResourceType is a structured resource for "urn:ietf:params:scim:schemas:core:2.0:ResourceType"
Expand All @@ -13,7 +13,7 @@ type ResourceType struct {
Endpoint string `json:"endpoint" validate:"startswith=/,required"`
Description string `json:"description,omitempty"`
Schema string `json:"schema" validate:"urn,required"`
SchemaExtensions []SchemaExtension `json:"schemaExtensions,omitempty"`
SchemaExtensions []SchemaExtension `json:"schemaExtensions,omitempty" validate:"dive"`
}

// ResourceTypeURI is the Resource Type Configuration schema used by ResourceType
Expand Down

0 comments on commit 6f23992

Please sign in to comment.