The new error should follow this format:
"code": "invalid-value", "message": "Invalid value at '{json-pointer}'", "context": { "path": "{json-pointer}" }
Note: remember to check if the OAS needs updating as well.
The new error should follow this format:
"code": "invalid-value", "message": "Invalid value at '{json-pointer}'", "context": { "path": "{json-pointer}" }
Note: remember to check if the OAS needs updating as well.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Ifrahkhanyaree_WMDE | T366181 🚫 [Generalised error] invalid-value in request body | |||
Invalid | Jakob_WMDE | T369051 🚫 Replace `invalid-language-code` errors with generic `invalid-value` error |
Invalid language codes in the request body aren't values, they're the keys in labels/descriptions/aliases. The message would say "Invalid value at '/item/labels/bad-language-code'" which doesn't fit.