Clever / wag

sWAGger - Web API Generator
Apache License 2.0
77 stars 6 forks source link

Support $ref to other files and repos #349

Open taylor-sutton opened 3 years ago

taylor-sutton commented 3 years ago

It would be helpful to reduce duplication across projects if we could refer to models/definitions from outside the current file.

nathanleiby commented 3 years ago

This blog post provides a nice overview and justification: https://davidgarcia.dev/posts/how-to-split-open-api-spec-into-multiple-files/

It also suggests a workaround (basically: write multiple files then use pre-processing to join them), but ideally Wag could support this directly.