Hey there. I was wondering something about the identity schema. Specifically, I have a "nickname" trait in the schema with a minimum length set to 3. This field is just for display purposes across multiple systems, but needs to be there. If I understand it correctly, Kratos does not trim input by default, so it would be valid for the user to just submit three spaces. Is there something in the identity schema i can do so input is trimmed before being validated?
I know that I could trim the input on the frontend, but that would not stop a malicious actor to call the public API directly.
The only solution coming to my mind right now is this: have a regexp in the schema which forbids whitespace at the end and start of the string, then do trimming on the frontend. But this does sound suboptimal to me.