OpenAPI/Swagger specs, JSON schema files, protocol definition files.
Use make swagger
do generate /internal/types/**/*.go
from these specs. You may use make watch-swagger
while writing these schemas to automatically execute make swagger
every time there are changes (especially useful if you have http://localhost:8081/
opened in your browser while mutating these specs).
The final /api/swagger.yml
is auto-generated from the following specs:
- The skeleton spec at
/api/config/main.yml
, - all path specs living within
/api/paths/*.yml
and - any
/api/definitions/*.yml
referenced by in step 1 and 2.
Further reading:
Related examples regarding this project layout: