-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment:
- Python version: 3.12
- Operating system: Rocky Linux 9
- Flask version: 3.1.2
- flask-openapi3 version: 4.3.1
When i created the following:
@hello_world_page.get('')
def hello() -> str:
return ''And register with:
app.register_api(hello_world_page, url_prefix="/api/v1/hello")It generates the following json:
"/api/v1/hello/": {
"get": {
"operationId": "hello_world_hello_get",
"responses": {
"422": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/ValidationErrorModel"
},
"type": "array"
}
}
},
"description": "Unprocessable Entity"
}
},
"tags": [
"default"
]
}
},Which is obviously incorrect because the trailing /
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working