Comments (3)
I never try on that, but usually the response class is a JSON model. If you want an array objects, i suggest you wrap the array into an object.
from swagger-express.
I am configuring via yml and it appears it can be done.
for your responseClass just do array[Model]
e.g.,
responseClass: array[User]
just specify the model (User in this case) as you normally would.
from swagger-express.
@BlackBarn Thanks!
from swagger-express.
Related Issues (20)
- Publish latest version to npm HOT 1
- basePath is required HOT 3
- Support for swagger 2.0? HOT 6
- Example does not have api-docs.json HOT 4
- Generating Swagger Documentation
- example responses docJs
- example responses docJs
- Swagger Validation for File Downloads
- Swagger UI doesnt come up HOT 2
- swagger-express does not work behind reverse proxy
- Unable to pass input field data in body (paramType : body) getting an error invalid json HOT 1
- The app.configure() function has been removed in Express 4 HOT 3
- Swagger error
- Demo looks like broken HOT 1
- How to specify array type in models
- how to specify paramType as header
- ENOENT when use relative filepath on apis
- Bearear token
- Update to Latest Dependent Package Versions
- update dependent packages
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.