swagger-api / swagger-api/swagger-codegen
[nodejs] support server response headers
Open
Nobody has claimed this yet.
Enhancement: Feature
Server: Nodejs
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
I would like that a generated nodejs server does respond wiht the headers which were defined in the swagger file. Is this possible?
Swagger declaration file content or url
responses:
'200':
description: Success
headers:
Access-Control-Allow-Origin:
type: string
default: "*"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the generated Node.js server response handling and the Swagger response declaration shown in the issue. Determine how declared response headers should be represented in generated output; done means a generated server sends headers defined for the response, including Access-Control-Allow-Origin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100