selfservice: Form BodyParser should assert types using JSON Schema #109
Labels
bug
Something is not working.
help wanted
We are looking for help on this one.
package/selfservice
Affects selfservice components
Milestone
Describe the bug
At the moment,
selfservice.BodyParser
assert types based on possible conversion."true"
is always converted totrue
,"12345"
always to12345
. This doesn't make sense because users might use a random number as their e.g. name (due to laziness or privacy reasons). Instead of asserting based on user input, we need to assert types based on the JSON Schema for that identity.Reproducing the bug
Steps to reproduce the behavior:
Expected behavior
The types should be set correctly and the JSON Schema should be used as a source of truth, not the user input.
Additional context
Follow up to #98
If you wish to tackle this please comment here.
The text was updated successfully, but these errors were encountered: