We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
import Elysia from "elysia"; import { swagger } from "@elysiajs/swagger"; const app = new Elysia().use(swagger()).get("/", {}, {}).listen(3000);
with elysia 1.2.9 and swagger 1.2.0 produces this swagger (converted to yaml)
1.2.9
1.2.0
openapi: 3.0.3 info: title: Elysia Documentation description: Development documentation version: 0.0.0 paths: /: get: operationId: getIndex responses: '200': {} components: schemas: {}
which produces errors in here: https://editor.swagger.io/
Structural error at paths./.get.responses.200 should have required property 'description' missingProperty: description Jump to line 10
Perhaps the plugin should just prefill some sample text like "Successful response" for 200 and so on (it seems like fastapi does that).
I could try and suggest some code changes if authors are happy with this approach
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example:
with elysia
1.2.9
and swagger1.2.0
produces this swagger (converted to yaml)which produces errors in here: https://editor.swagger.io/
Perhaps the plugin should just prefill some sample text like "Successful response" for 200 and so on (it seems like fastapi does that).
I could try and suggest some code changes if authors are happy with this approach
The text was updated successfully, but these errors were encountered: