chore: improve dynamic parameter validation errors (#18501)

`BuildError` response from `wsbuilder` does not support rich errors from validation. Changed this to use the `Validations` block of codersdk responses to return all errors for invalid parameters.
This commit is contained in:
Steven Masley
2025-06-23 15:08:18 -05:00
committed by GitHub
parent f6e4ba6ed9
commit 5ed0c7abcb
6 changed files with 168 additions and 56 deletions
+4
View File
@@ -0,0 +1,4 @@
// Package httperror handles formatting and writing some sentinel errors returned
// within coder to the API.
// This package exists outside httpapi to avoid some cyclic dependencies
package httperror