swagger-api / swagger-api/swagger-codegen

[PHP][Slim] Multiple tags lead to multiple generations

Open
#4,423 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

General: Question Server: PHP
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

When setting multiple tags for a single path, the Slim code is generated multiple times, once for each tag.

Swagger-codegen version

using http://editor.swagger.io/

Swagger declaration file content or url

Any YAML will work, just add two or more tags to path.

Steps to reproduce

Export above YAML to Slim on editor.swagger.io

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

Reproduce the issue by exporting a YAML definition with two or more tags on one path to Slim through editor.swagger.io. Then inspect the PHP/Slim generator and trace why the path produces one generation per tag; done means the path is generated once while retaining the expected tag-related output.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.