Altinn / Altinn/app-frontend-react
Extend json schema "format" validation messages
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
Validation based on format in the json schema can represent a lot of different things. Maybe the default message should be more informative than: "Wrong format or value". Ajv returns which format was used in the error object, so it should be relatively easy to show different default messages for the standard formats at least.
_Originally posted by @olemartinorg in https://github.com/Altinn/app-frontend-react/issues/1140#issuecomment-1547373305_
Contributor guide
Research direction
No file or test is named in the issue. Start by locating the JSON Schema format-validation message path and inspect how Ajv's format value reaches the error object; done means standard formats produce more informative default messages without changing existing validation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json, react, typescript
- Domain
- frontend, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100