You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix OpenAPI route generator for Response return contract #520
install:openapi currently generates route closures that are expected to return Quantum\Http\Response, but one generated closure can reference an undefined $response variable after contract migration.
Problem
In OpenApiCommand::openapiRoutes():
The generated docs route closure is migrated to function (): Quantum\Http\Response
But if it uses $response->html(...) without receiving/initializing $response, generated code fails at runtime (Undefined variable $response)
Expected behavior
Generated openapi routes should fully comply with the new response contract and return concrete Response objects without undefined variables.
Proposed fix
Update generated route snippets to use helpers that return response instances explicitly:
return response()->html(...)
return response()->json(...)
Acceptance criteria
install:openapi generated docs and spec closures both return Quantum\Http\Response
No undefined variable usage in generated routes
Generated module routes work under strict response-return middleware/route pipeline
Activity
[#520] Fix OpenAPI generated routes response contract
Merge pull request #521 from armanist/issue/520-openapi-response-cont…
[#520] Finalize RC release notes link and rector-typed terminal closure