Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix root_path of load_swagger_file #437

Open
wants to merge 3 commits into
base: fix/437
Choose a base branch
from

Conversation

codermartin
Copy link

Given thing_doer.yml:

tags:
  - "thing_doer"
summary: "Do a thing"
description: ""
consumes:
  - "application/json"
produces:
  - "application/json"
parameters:
  - in: "body"
    name: "body"
    required: true
    schema:
      import: "models/stuff.yml"
responses:
  200:
    description: "The results of doing a thing"
    schema:
      type: "object"
      properties:
        whatever:
          type: "integer"

with a file structure as follows, the folder specs is the doc_dir:

specs/
   thing_doer.yml
   models/
      stuff.yml

before this fix:
the stuff.yml full path would be specs/thing_doer.yml/models/stuff.yml, and it's wrong.

after this fix:
the stuff.yml full path would be specs/models/stuff.yml, and it's right.

@billyrrr billyrrr changed the base branch from master to fix/437 May 10, 2023 18:35
@billyrrr
Copy link
Member

Thank you. I will merge it in a separate branch and test it first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants