If yes, is there a way to prevent this? Have the p...
# talk-kratos
e
If yes, is there a way to prevent this? Have the payload be validated by the identity schema and either silently ignore fields not on the schema or even throw an error?
s
e
I read the linked resource. Does that mean I can prevent additional properties somehow by specifying this?
Copy code
"additionalProperties": false
s
yes
you have to do it on every level
e
Is this a valid approach? Or would that be considered a misuse of the identity schema?
I was honestly surprised that the client can store any arbitrary key/value pair in the traits of his/her profile.
s
no that is the way you should do it
it is just how json schema works...
e
Thanks 👍