Files
coder/coderd
Jeremy Ruppel 0ecf0d80b4 fix(coderd): attribute template builder create errors to request fields (#32559)
The template builder's create endpoint now attaches `validations` to its
name conflict (409) and missing organization (404) responses, naming the
`name` and `organization_id` fields. This matches the regular
create-template endpoint, which already returns a `name` validation on
conflict.

With this, the builder UI in #32492 can show these errors inline on
their fields through `getFormHelpers(form, createError)` instead of
mapping HTTP status codes to fields.

The 404 returned when the user can see the organization but cannot
create templates in it still has no field validation. It falls back to
the form-level alert.

> [!NOTE]
> Generated by Coder Agents on behalf of @jeremyruppel.
2026-11-20 16:36:32 -05:00
..