docs(api/v2): mark error code field read-only

This commit is contained in:
kolaente 2026-05-31 15:29:46 +02:00
parent 78ca1904b5
commit 2488478f69
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func translateDomainError(err error) error {
// as the global error type via the huma.NewError override in init().
type vikunjaErrorModel struct {
huma.ErrorModel
Code int `json:"code,omitempty" doc:"Vikunja numeric error code; see https://vikunja.io/docs/errors/"`
Code int `json:"code,omitempty" readOnly:"true" doc:"Vikunja numeric error code; see https://vikunja.io/docs/errors/"`
}
func init() {