When a controller returns a io.jooby.StatusCode, the openapi includes it as schema object:
openapi: 3.0.1info:
title: 1792 APIdescription: 1792 API descriptionversion: "1.0"paths:
/:
post:
summary: This is the post for testSuitedescription: TestSuite change1234 DescriptionoperationId: User creationresponses:
"200":
description: Successcontent:
application/json:
schema:
$ref: "#/components/schemas/StatusCode"components:
schemas:
StatusCode:
type: object
This is wrong. Correct output must be:
openapi: 3.0.1info:
title: 1792 APIdescription: 1792 API descriptionversion: "1.0"paths:
/:
post:
summary: This is the post for testSuitedescription: TestSuite change1234 DescriptionoperationId: User creationresponses:
"200":
description: Success
The text was updated successfully, but these errors were encountered:
We are unable to convert the task to an issue at this time. Please try again.
The issue was successfully created but we are unable to update the comment at this time.
When a controller returns a
io.jooby.StatusCode, the openapi includes it as schema object:This is wrong. Correct output must be:
The text was updated successfully, but these errors were encountered: