-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema validation #506
Comments
Hi, thanks for asking ! As OpenApi V3 does not have a "formData" parameter I presume you are using V2. Looking at the specification of the parameter object in V2 . Looking at https://spec.openapis.org/oas/v2.0#parameter-object I noticed that the current V2 parser implementation is missing the fields listed under: In V3 this problem does not occur as the schema items are all listed under a So my first advice would be to migrate your spec to V3.x as this will make it also more future proof ;-) In the meantime I will try to add the missing fields to the V2 parser. Hope this helps ! |
Released as 4.3.2 on NPM. Kind regards, |
I'm not sure if this question related to the plugin or the fastify itself.
I have the following example:
{ "in": "formData", "name": "name", "type": "string", "required": true, "maxLength": 30, },
I see that I did get validation for the property and the type but not for the maxLength, any reason why?
The text was updated successfully, but these errors were encountered: