You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any other way I could solve this? Or would it perhaps be a useful extension to provide the validator with the schema as well?
The text was updated successfully, but these errors were encountered:
sitepark-veltrup
changed the title
[Question] Custom Format Validator with constraints
[Question] Custom format validator with constraints
Sep 12, 2024
I would like to transfer form data in JSON. The file uploads should be specified in the Data URI schema. My JSON schema looks like this.
Here I can create my own validator via Custom Formats, which checks the format.
However, I would like to go even further and also have the validator check a maximum file size, for example, and could extend my schema for this:
My problem is that only the string is passed to the format validator, but I can't get to the schema and read out
maxFileSize
.I have another case where I want to limit HTML to certain elements.
Is there any other way I could solve this? Or would it perhaps be a useful extension to provide the validator with the schema as well?
The text was updated successfully, but these errors were encountered: