swagger-api / swagger-api/swagger-codegen
Did Swagger-Codegen forward Security properties to template?
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
As you know, swagger support "Security" property in its schema like this:
"paths" : {
"..." : {
"parameters": [...],
"responses" : {...},
"security": {
"protected": true,
"resource": "change_creative_status:global"
}
}
}
But I can not find the parameters of this property in template.
This is a feature or my mistake?
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 tracing how the Swagger schema's paths.security object reaches the code-generation template context. The issue names only the schema property and templates, so identify the relevant generator entry point and tests before determining whether forwarding is missing; done means the behavior is clarified and any necessary template exposure is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100