You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
err=validation.ValidateSpiffeIdPattern(spiffeIdPattern)
iferr!=nil {
responseBody:=net.MarshalBody(reqres.PolicyCreateResponse{
Err: data.ErrBadInput,
Reason: "Invalid spiffe id pattern. Matcher should be a regex that can match a spiffe id"
}, w)
net.Respond(http.StatusBadRequest, responseBody, w)
returnerr
}
for all validations.
The text was updated successfully, but these errors were encountered:
along with the error code, also return some explanatory message
instead of this for example
do this
for all validations.
The text was updated successfully, but these errors were encountered: