Comments (1)
I'm using Json-Schema to validate parameters, but Json-Schema says:
required:
The value of this keyword MUST be an array. This array MUST have at least one element. Elements of this array MUST be strings, and MUST be unique.
An object instance is valid against this keyword if its property set contains all elements in this keyword's array value.
But OAI not validate query parameters through Json-Schema. Query could be no parameter.
So i inject a default required key koa-oai-router:default:required:just4validatequery for query if it's schema has no required field.
PR #7
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
- Support for OAI v3 HOT 9
- 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
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.