docs/api-spec.openapi.yaml.
Do not treat frontend/docs/openapi/public-api.openapi.yaml as the file to edit directly. That file exists so Mintlify can render the reference.
Update workflow
- Change
docs/api-spec.openapi.yaml. - Run
npm run sync:openapifromfrontend/docs. - Run
npm run validate:openapiornpm run validateto validate the Mintlify docs build with the mirrored spec. - Preview with
npm run dev. - Commit the shared spec and the mirrored file together.
What should trigger an OpenAPI update
- adding or removing a route
- changing a request or response field
- changing auth requirements
- changing error codes or messages that clients rely on
- changing server URLs used in docs or the playground