Skip to content

Unable to override openapi servers definition it with -s, --server #3

@suchman

Description

@suchman

Describe the bug
In our openapi.yaml, we define servers

servers:
  -
    url: 'https://api.myshoptet.com' 

And we are unable to override it with -s, --server to test localhost

To Reproduce

We are running dochia test -c openapi/openapi.yaml --server https://api.myshoptet.com.test --path "/api/articles" -H "Shoptet-Access-Token=10000-a-...."

Expected behaviour
-s, --server parameter override servers attribute defined in openapi.

Environment:
openapi.yaml download at https://api.docs.shoptet.com/_bundle/Shoptet%20API/openapi.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions