Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
115 stars 70 forks source link

Define and centralize backend/frontend validation rules using json schemas #14078

Open mlqn opened 1 week ago

mlqn commented 1 week ago

Description

I suggest defining our validation rules (e.g., required, minLength/maxLength, type, regex, etc.) for our data (e.g., layout name, layout set name, etc.) in new JSON schemas and using them in both frontend and backend to ensure a single source of truth.

This would potentially help to fix :

### Issues
- [ ] https://github.com/Altinn/altinn-studio/issues/11215
- [ ] https://github.com/Altinn/altinn-studio/issues/11221
- [ ] https://github.com/Altinn/altinn-studio/issues/11223
- [ ] https://github.com/Altinn/altinn-studio/issues/11887
- [ ] https://github.com/Altinn/altinn-studio/issues/14077