Skip to content

Commit

Permalink
validate in public API
Browse files Browse the repository at this point in the history
  • Loading branch information
parametalol committed Mar 4, 2024
1 parent b5ff79e commit aa76ef1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/dinosaur/pkg/handlers/dinosaur.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func (h dinosaurHandler) Create(w http.ResponseWriter, r *http.Request) {
ValidateDinosaurClaims(ctx, &centralRequest, convCentral),
ValidateCloudProvider(&h.service, convCentral, h.providerConfig, "creating central requests"),
handlers.ValidateMultiAZEnabled(&centralRequest.MultiAz, "creating central requests"),
ValidateDinosaurTraits(&centralRequest, convCentral),
},
Action: func() (interface{}, *errors.ServiceError) {
// Set the central request as internal, **iff** the user agent used within the creation request is contained
Expand Down

0 comments on commit aa76ef1

Please sign in to comment.