Skip to content

swagger generate markdown doesn't respect both '--output' and '--target' #2938

@TopherIsSwell

Description

@TopherIsSwell

Problem statement

When using swagger generate markdown with the --output and --target parameters specified, the --target will be ignored.

Steps to reproduce

Presumes you have a valid swagger spec at swagger.yml

mkdir subdir

swagger generate markdown --target subdir -f swagger.yml
Generates subdir/markdown.md (in subdirectory) as expected

swagger generate markdown --output API.md -f swagger.yml
Generates API.md in the current directory as expected

swagger generate markdown --output API.md --target subdir -f swagger.yml
Generates API.md in the current directory (ignoring --target)

Environment

swagger version: v0.30.4
commit: df6da9b

go version go1.19.8 linux/amd64
OS: Fedora 37 Workstation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions