swagger-api / swagger-api/swagger-codegen

Did Swagger-Codegen forward Security properties to template?

Open
#8,154 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.