Skip to content

couldn't find a swagger spec #2580

@santosh

Description

@santosh

Problem statement

Getting couldn't find a swagger spec when doing swagger generate server -A todo-list -f ./swagger.yml.
I am following https://goswagger.io/tutorial/todo-list.html.

Steps to reproduce

  1. Go to https://goswagger.io/tutorial/todo-list.html and copy the complete spec to a file called swagger.yml.
  2. Run swagger generate server -A todo-list -f ./swagger.yml from the directory of the file.

Environment

swagger version: version: v0.27.0
go version: go1.15.8
OS: Amazon Linux 2

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