Open jshort opened 5 years ago
So this does work:
definitions:
Message:
$ref: './definitions.yaml#/Message'
ErrorResponse:
$ref: './definitions.yaml#/ErrorResponse'
However I've seen multiple swagger 2.0 examples showing that you can set paths
and definitions
at the root level. What has changed?
Dependencies:
Excerpt from main.yaml yaml spec:
definitions.yaml is in the same directory as main.yaml and looks like:
I have some simple code that parses the spec and the messages indicates my definitions ref is not good and the swagger object has no definitions:
Messages: