#75
test: add unit tests for src/openapi.ts
Adds test/openapi.test.ts validating the generated OpenAPI spec:
- Declares OpenAPI 3.1
- Has info with title, version, contact
- Contains core paths (
/,/v1/classify,/v1/health,/{labels}/{text}) - Every path has at least one HTTP operation
ClassifyRequest,ClassifyResponse,DimensionResult,Errorschemas exist- Security scheme is configured as bearer
ERROR_CODEScontains the documented codesLLMS_TXTstarts correctly and mentions the API endpoint
12 tests, all pass under bun test.
🤖 Generated with Claude Code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.