If youâre writing a Swagger API spec and itâs becoming too large, you can split it into multiple files. Swagger supports JSON Reference (draft) for using remote and local pieces of JSON to build up a Swagger document. JSON Reference Overview JSON Reference uses the special key $ref to define a âreferenceâ to a piece of JSON. For example following JSON has a reference to http://example.com/foo.json
{{#tags}}- {{label}}
{{/tags}}