Skip to content

Inline does not work together with replace #2121

@SZhukovWork

Description

@SZhukovWork

Describe the bug
When using replace via .swaggo and using json:",inline". The Inline tag is ignored

To Reproduce
Steps to reproduce the behavior:

  1. Create .swaggo
  2. Insert in .swaggo replace struct A to another structure with different fields B
  3. Create struct C with a field containing the structure A and tag json:",inline"
  4. Generate swagger file
  5. See the bug in struct C(in structure C, there will be structure A in field A)

Expected behavior
The generated swagger file should use the B structure.

Your swag version
v2.0.0-rc4 and v1.16.2

Your go version
1.25.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions