good first issuetypescript
Repository metrics
- Stars
- (29 stars)
- PR merge metrics
- (PR metrics pending)
Description
At least in
- survey slugs (dash)
- dimension slugs (underscore)
- dimension value slugs (underscore)
- form field slugs
Currently this is the validator used in backend:
However, this is not validated on the forms, causing a GraphQL error and #399.
Add a similar pattern validator in the frontend to the inputs that convey slugs.
Also the backend validator is shit and does substring match or something else that is fucked up. For example ooh-tukilomake including the space is a valid survey slug according.