Comments (2)
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:
If [in](https://spec.openapis.org/oas/v2.0#parameterIn) is any value other than "body":
In V3 this problem does not occur as the schema items are all listed under a schema
property.
https://spec.openapis.org/oas/v3.1.0#parameter-object
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 !
Hans
from fastify-openapi-glue.
Released as 4.3.2 on NPM.
Hope this helps !
Please reopen the issue if it doesn't work for you !
(Github autocloses an issue when its mentioned in a PR that is merged)
Kind regards,
Hans
from fastify-openapi-glue.
Related Issues (20)
- Support for union types in schema? HOT 2
- OpenAPI spec parameters are mapped incorrectly HOT 4
- Opentelemetry Support HOT 5
- Error [ERR_REQUIRE_ESM]: Must use import to load ES Module HOT 6
- example fails with FST_ERR_SCH_VALIDATION_BUILD HOT 3
- Validation Errors when embedding $refs to models that contain "x-" or "example" keywords HOT 3
- Error in Response Validation Message HOT 9
- Middleware HOT 3
- [email protected] deprecation notice (FSTDEP012) "Request#context will be removed in `fastify@5` HOT 4
- No validation error when non `application/json` response provided by API HOT 2
- Return route options from operationResolver HOT 2
- [Discussion] [Request] Rename `service` => `handlers` in options HOT 4
- Suggestion about the TS imports errors HOT 7
- using "example" in swagger api HOT 7
- PARAMETERS method is not supported: when using cross-method parameters HOT 3
- Presence of cookie not being validated HOT 5
- and connected security requirements not possible. HOT 7
- Multiple Security Handlers Error Handling HOT 4
- "Error: 'specification' parameter must contain a valid version" when trying to reference schema from another file HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastify-openapi-glue.