#75

test: add unit tests for src/openapi.ts

Opendoitrouswants to merge intofrom

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, Error schemas exist
  • Security scheme is configured as bearer
  • ERROR_CODES contains the documented codes
  • LLMS_TXT starts correctly and mentions the API endpoint

12 tests, all pass under bun test.

🤖 Generated with Claude Code

Activity

2
coderabbitai[bot]1mo ago

WARNING

Review limit reached

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 4533d4ab-247c-4829-8acd-42bf3845181e

📥 Commits

Reviewing files that changed from the base of the PR and between 5c241afbb44e01f9e60a2d6184b6ce3621c83b36 and e593f33f0d2d990e14f8d2c2d8314153b797e8d6.

📒 Files selected for processing (1)
  • test/openapi.test.ts

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 help to get the list of available commands.