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

can a.yaml use b.yaml definitions? #1994

Closed
kingcr7 opened this issue May 14, 2019 · 1 comment
Closed

can a.yaml use b.yaml definitions? #1994

kingcr7 opened this issue May 14, 2019 · 1 comment

Comments

@kingcr7
Copy link

kingcr7 commented May 14, 2019

My Swagger/OpenAPI version: Swagger 2.0
my question:a.yaml and b.yaml are in same directory, how can i use objectB in a.yaml?

a.yaml
definitions:
objectA

b.yaml
definitions:
objectB

@hkosova
Copy link
Contributor

hkosova commented Sep 11, 2019

$ref can point to other files, like so:

$ref: './b.yaml#/definitions/objectB'

However, at this time Swagger Editor does not support resolving relative references. This is tracked #1409.

@hkosova hkosova closed this as completed Sep 11, 2019
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