Code Monkey home page Code Monkey logo

Comments (9)

amazing-gao avatar amazing-gao commented on May 29, 2024 3

V3 is not yet supported
I use swagger-parser as the specification's parser and validator, and it's still under beta-testing.
Later i will begin to v3's support work.

from koa-oai-router.

amazing-gao avatar amazing-gao commented on May 29, 2024 1

@bitebit swagger-parser is no longer in beta, it seems. Their master branch is very uptodate. Any plans on upgrading?

I will try to upgrade recently.

from koa-oai-router.

amazing-gao avatar amazing-gao commented on May 29, 2024

Thanks for issue.
Which features in V3 you need to use?

from koa-oai-router.

yetithefoot avatar yetithefoot commented on May 29, 2024

I just started to writing new simple api file version 3 and tried to user run router, but got syntax error. Not sure what exact feature lead to that.

{
  "name": "SyntaxError",
  "message": "./api.yml is not a valid Swagger API definition",
  "stack": "SyntaxError: ./api.yml is not a valid Swagger API definition
    at ~/api/node_modules/swagger-parser/lib/index.js:75:19
    at <anonymous>"
}

from koa-oai-router.

kevingilbert100 avatar kevingilbert100 commented on May 29, 2024

https://www.npmjs.com/package/@overspeed/koa2-oas3

This is a work in progress - but if anyone needs an example of how to do this in Node.js.

from koa-oai-router.

SkeLLLa avatar SkeLLLa commented on May 29, 2024

I'm also looking forward for 3.0 support. Mainly because they added oneOf support.

from koa-oai-router.

ronkorving avatar ronkorving commented on May 29, 2024

@bitebit swagger-parser is no longer in beta, it seems. Their master branch is very uptodate. Any plans on upgrading?

from koa-oai-router.

jsdevel avatar jsdevel commented on May 29, 2024

Check out https://github.com/kogosoftwarellc/open-api/tree/master/packages/koa-openapi. V3 is supported, and it's also possible to add oneOf to V2 as an extension.

from koa-oai-router.

amazing-gao avatar amazing-gao commented on May 29, 2024

Check out https://github.com/kogosoftwarellc/open-api/tree/master/packages/koa-openapi. V3 is supported, and it's also possible to add oneOf to V2 as an extension.

It looks good, maybe a good choice.

from koa-oai-router.

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.