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

$ref property of path item object specified in swagger spec is not getting resolved properly when using swagger ui. #999

Closed
RashmiRam opened this issue Mar 5, 2015 · 5 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.

@mohsen1
Copy link
Contributor

mohsen1 commented Mar 5, 2015

For now you can use one of many JSON Schema tools that resolve $refs before passing it to Swagger UI.

@rmarscher
Copy link

@mohsen1 Any chance you can recommend a tool that can do this? There seem to be a lot of tools that validate but don't provide a way to output the json after resolving $refs. Thanks!

@mohsen1
Copy link
Contributor

mohsen1 commented Mar 11, 2015

@rmarscher
Copy link

@mohsen1 Thanks a lot. That worked perfectly to resolve the references. I think my problem was searching for JSON Schema tools instead of JSON References.

@mohsen1
Copy link
Contributor

mohsen1 commented Mar 16, 2015

Please follow this issue here: swagger-api/swagger-js#270

@mohsen1 mohsen1 closed this as completed Mar 16, 2015
maryscar added a commit to maryscar/swagger-ui that referenced this issue May 10, 2018
…ccessibility color contrast threshold.
maryscar added a commit to maryscar/swagger-ui that referenced this issue May 10, 2018
…on_Model_properties_#4539

Update inline style from swagger-api#999 to swagger-api#666 to meet accessibility color con…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants