-
-
Notifications
You must be signed in to change notification settings - Fork 321
Description
Bug Description
Wrong openapi.json generation:
Steps to Reproduce
Minimal reproduce code:
`from robyn import Robyn
app = Robyn(file)
@app.get("/users/:id/posts/:post_id")
async def get_user_post(request, path_params):
user_id = path_params["id"]
post_id = path_params["post_id"]
return {
"user_id": user_id,
"post_id": post_id,
"method": request.method
}
app.start(port=8000) `
Your operating system
Windows
Your Python version (python --version)
3.13
Your Robyn version
latest
Additional Info
{ "openapi": "3.1.0", "info": { "title": "Robyn API", "version": "1.0.0", "description": null, "termsOfService": null, "contact": { "name": null, "url": null, "email": null }, "license": { "name": null, "url": null }, "servers": [], "externalDocs": { "description": null, "url": null }, "components": { "schemas": {}, "responses": {}, "parameters": {}, "examples": {}, "requestBodies": {}, "securitySchemes": {}, "links": {}, "callbacks": {}, "pathItems": {} } }, "paths": { "/users/{id/posts}/{post_id}": { "get": { "summary": "", "description": "No description provided", "parameters": [ { "name": "id/posts", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "post_id", "in": "path", "required": true, "schema": { "type": "string" } } ], "tags": [ "get" ], "responses": { "200": { "description": "Successful Response", "content": { "text/plain": { "schema": {} } } } } } } }, "components": { "schemas": {}, "responses": {}, "parameters": {}, "examples": {}, "requestBodies": {}, "securitySchemes": {}, "links": {}, "callbacks": {}, "pathItems": {} }, "servers": [], "externalDocs": null }