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
When registering a route with the all method the generated swagger blindly copies the httpMethod which is not valid according to openapi 3.0.3 spec.
all
app .use(swagger()) .all("test",() => {});
"/test": { "all": { "operationId": "allTest", "responses": { "200": {} } } },
The only valid methods are get, put, post, delete, options, head, path, trace https://swagger.io/specification/
get, put, post, delete, options, head, path, trace
Here we probably should filter by valid methods and in case of all call the register function multiple times.
elysia-swagger/src/index.ts
Lines 132 to 143 in 8eb03f0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When registering a route with the
all
method the generated swagger blindly copies the httpMethod which is not valid according to openapi 3.0.3 spec.The only valid methods are
get, put, post, delete, options, head, path, trace
https://swagger.io/specification/Here we probably should filter by valid methods and in case of all call the register function multiple times.
elysia-swagger/src/index.ts
Lines 132 to 143 in 8eb03f0
The text was updated successfully, but these errors were encountered: