Comments (4)
I'm experiencing the same thing where I've got a spec file that tries to follow the JSON API spec (i.e. return an object instead of array for collections). No solution yet though (may have to trawl through the code to find out where things fall over).
If you do find a solution, please report back!
from swagger-express-middleware.
@rdewit , you're right. Object is treated as resource hence it does not work.
Will let you know if I find some way around.
from swagger-express-middleware.
@Simar15 @rdewit - I don't have time to look into this right now, but the behavior is documented here, which may be usueful to you. Specifically, Step 1 (Determine if it's a collection or resource operation)
from swagger-express-middleware.
Closing this issue due to its age. Please re-open it if the issue is still relevant
from swagger-express-middleware.
Related Issues (20)
- Unit testing swagger-express-middleware with Jest and Supertest HOT 4
- NPM audit issue HOT 1
- Token scheme validation in case of defintion type: apiKey and Authorization header
- Old version of Multer is causing a high severity vulnerability HOT 1
- swagger-express-middleare not adding CORS headers HOT 1
- parseRequest - ability to skip multipart uploads HOT 1
- Way to cusomize http401 ? HOT 1
- FormData fields are undefined since switching to version 4.0.0 HOT 2
- validateRequest ignores "format": "uuid" for strings HOT 2
- Installing only devDependencies - `swagger-express-middleware` prevents `glob` from installing
- Does the file-based mock middleware support cross-file referencing? HOT 1
- what's the difference between @apidevtools/swagger-express-middleware and swagger-express-middleware? HOT 2
- npm lodash vulnerability CVE-2020-8203
- Support for Next.js
- Dicer Vulnerability HOT 2
- Dicer Vulnerability
- protobufjs Vulnerability
- ERR_HTTP_INVALID_STATUS_CODE
- Package is deprecated, migrating to express-openapi-validator
- This package is now closed
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 swagger-express-middleware.