jmalin
7 years agoNew Contributor
Use external files as $ref targets in SwaggerHub
I'm trying to figure out how to store and refer to external files in SwaggerHub using $ref.
I'm still using a "free" account while I evaluate the product. This may limit my options.
Here are my issues:
- I don't see any way to upload a file containing OAS3 YAML so that my API definition could be aware of it.
- I can't tell how to write the parameter to the $ref: key so that it refers to another file.
- I don't know which OAS3 objects can use external references
- I don't know how to format the external file. In an internal reference, all I have to do is point to the object (for example components/schemas and the name of the object, for example myProperty. I don't know what has to be in the external file.