GithubHelp home page GithubHelp logo

Schema validation about fastify-openapi-glue HOT 2 CLOSED

shayff avatar shayff commented on July 19, 2024
Schema validation

from fastify-openapi-glue.

Comments (2)

seriousme avatar seriousme commented on July 19, 2024

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.

seriousme avatar seriousme commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.