Comments (9)
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.
@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.
Thanks for issue.
Which features in V3 you need to use?
from koa-oai-router.
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.
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.
I'm also looking forward for 3.0 support. Mainly because they added oneOf
support.
from koa-oai-router.
@bitebit swagger-parser is no longer in beta, it seems. Their master branch is very uptodate. Any plans on upgrading?
from koa-oai-router.
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.
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)
- support custom format repsonse when a request's parameters verify failed
- Upgrade swagger UI HOT 5
- [Question] 'controllerDir' and 'x-oai-controller' name choice. HOT 2
- Add middlewareDir and x-oai-middleware alias HOT 1
- Support allOf to split paths into multi files HOT 1
- Not getting parameter from path HOT 1
- ctx.renderSwaggerApiExplorer is undefined HOT 3
- Protected routes HOT 4
- [Question] wrap every route into a try catch HOT 3
- Please publish 1.1.2 to npm HOT 1
- support boolean type verification in url query object HOT 3
- Validator fails for single value for arrays HOT 2
- API Explorer shows Petstore instead of custom API HOT 3
- Unterminated Promise HOT 4
- unable to mount two routers to koa HOT 2
- [Question] Do you have a roadmap ? HOT 2
- How to handle file upload? HOT 2
- What's wrong with this api path? HOT 2
- query schema at least has one 'required' item HOT 1
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 koa-oai-router.