Skip to content

$ref property of path item object is not able to reference a file in the same domain. #295

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

Closed
RashmiRam opened this issue Mar 4, 2015 · 3 comments

Comments

@RashmiRam
Copy link

The below piece of code is in swagger.json

"paths":{
    "/path/to/action":{
        "$ref":"http://same.domain.com/action_doc.json"
    }
}

references another file in the same domain.
As shown in the example here
https://github.com/swagger-api/swagger-spec/blob/master/fixtures/v2.0/json/resources/resourceWithLinkedDefinitions.json#L32

Any advise would be helpful.

@webron
Copy link
Member

webron commented Mar 4, 2015

Do you experience an issue with a specific swagger-related tool?

@RashmiRam
Copy link
Author

Using swagger ui.

@webron
Copy link
Member

webron commented Mar 4, 2015

Then please open an issue on swagger-ui :)

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

No branches or pull requests

2 participants