Resolves Swagger conflict causing OpenAPI export to fail with HTTP 500 error. Root Cause: - OpenHarbor.CQRS v8.1.0-rc1 auto-registers and auto-documents ALL ICommandHandler and IQueryHandler implementations - ManualEndpointRegistration.cs contained duplicate registrations for: * Commands: CreateConversation, StartAgentExecution * Queries: GetAgentExecution, GetConversation - Duplicate routes violated OpenAPI 3.0 requirement for unique method/path combinations Changes: - Removed duplicate command registrations (lines 30-92) - Removed duplicate query registrations (lines 44-124) - Added explanatory comments about framework auto-registration - File reduced from ~450 lines to ~320 lines Impact: - ✅ Swagger endpoint now returns HTTP 200 (was HTTP 500) - ✅ OpenAPI export successful: docs/openapi.json (34KB, was 524B error) - ✅ All 16 endpoints properly documented - ✅ Frontend team can now generate TypeScript client - ✅ export-openapi.sh script working correctly Verified: - Valid OpenAPI 3.0.1 JSON structure - 6 commands + 4 queries + 6 simple endpoints = 16 total - No more route conflicts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ManualEndpointRegistration.cs | ||
| SimpleEndpoints.cs | ||