Currently, the command to generate the OpenAPI spec for Device Analytics must be run manually before submitting a patch. To make this system more robust, add a command to build the docs to the Makefile.
Command to generate the docs:
swag init --markdownFiles .
Ideas for ideal workflows
(To be published as a separate task once this task is resolved.)
Assuming the ability to install and run swag in CI, run the command to generate the docs as part of CI checks, and check if the output matches the committed files. If not, fail the check.