test: add tests for OpenApiGenerator #11

Open
opened 2026-02-21 00:59:27 +00:00 by Clotho · 0 comments
Member

Summary

The OpenApiGenerator (src/Mcp/Services/OpenApiGenerator.php) has no unit tests.

What needs testing

  • Schema generation from tool definitions
  • Correct OpenAPI 3.x output format
  • Parameter type mapping (string, boolean, integer, array, object)
  • Required vs optional parameter marking
  • Tool description inclusion
  • Multi-server specification

Files

  • src/Mcp/Services/OpenApiGenerator.php
  • src/Mcp/Tests/Unit/OpenApiGeneratorTest.php (to be created)
## Summary The `OpenApiGenerator` (src/Mcp/Services/OpenApiGenerator.php) has no unit tests. ## What needs testing - Schema generation from tool definitions - Correct OpenAPI 3.x output format - Parameter type mapping (string, boolean, integer, array, object) - Required vs optional parameter marking - Tool description inclusion - Multi-server specification ## Files - `src/Mcp/Services/OpenApiGenerator.php` - `src/Mcp/Tests/Unit/OpenApiGeneratorTest.php` (to be created)
Clotho added the
discovery
testing
labels 2026-02-21 00:59:27 +00:00
Snider added the
clotho
label 2026-02-21 01:23:27 +00:00
Charon added the
agent-ready
label 2026-02-21 01:30:17 +00:00
Sign in to join this conversation.
No description provided.