Skip to content

Commit

Permalink
Update: Service provider config validations (refs #37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Di Donato committed Jan 23, 2018
1 parent 3bd61a5 commit a2ef87f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions schemas/core/service_provider_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
Expand Down

0 comments on commit a2ef87f

Please sign in to comment.