MCPcopy Index your code
hub / github.com/coder/coder / writeUserSecretValidationErrors

Function writeUserSecretValidationErrors

coderd/usersecrets.go:318–323  ·  view source on GitHub ↗
(ctx context.Context, rw http.ResponseWriter, status int, validations []codersdk.ValidationError)

Source from the content-addressed store, hash-verified

316}
317
318func writeUserSecretValidationErrors(ctx context.Context, rw http.ResponseWriter, status int, validations []codersdk.ValidationError) {
319 httpapi.Write(ctx, rw, status, codersdk.Response{
320 Message: "Validation failed.",
321 Validations: validations,
322 })
323}
324
325func createUserSecretValidationErrors(req codersdk.CreateUserSecretRequest) []codersdk.ValidationError {
326 var validations []codersdk.ValidationError

Callers 2

postUserSecretMethod · 0.85
patchUserSecretMethod · 0.85

Calls 1

WriteFunction · 0.92

Tested by

no test coverage detected