Always use the existing package.json scripts rather than invoking the underlying tools directly:
npm run lint— lintnpm test— run the Jest test suitenpm run format— format with Prettiernpm run generate:docs— regeneratepublic/openapi.json
public/openapi.json is generated by npm run generate:docs from the @swagger JSDoc blocks in src/pages/api/**. Do not hand-edit it — update the JSDoc and regenerate (this also runs as part of npm run build).