docs/schemas/swagger.md
The Tyk API Documentation is an OpenAPI specification that outlines the endpoints you can call on the gateway.
The current OAS version is v3.0.3, generated from gateway v5.6.0.
We are currently using OpenAPI Specification version v3.0.3.
For linting the OAS, we use Redocly. You can install Redocly from here.
We used the Go library openapi-go because:
generate) used to generate the swagger.yml file.make generate in this directory.swagger.yml file containing all the gateway endpoints will be generated in the same directory.make generate command does:
rm -f swagger.yml && go run main.go && redocly lint swagger.yml.swagger.yml file (if any), generates a new swagger.yml file, and finally lints the file using Redocly.cmd directory contains the main.go file (used to call all the generation functions), a Makefile, and the generated swagger.yml file.