You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Add support for Files and Form in OpenAPI schema #3663
Hi 👋🏼
From the original discussion, I see this concerns app.enable_swagger().
Could you please let me know if it is possible to add multipart/form-data to the request body when using app.get_openapi_json_schema, or is this option currently unavailable as well?
@router.post("/user/activities/<activity_id>/assets",summary="Create asset",description="Create an asset for a user activity",responses={201: {"description": "Created","content": {"application/json": {"model": models.ActivityAssetResponse}}, } }|default_openapi_responses, # 400, 409, etc.tags=["User"],)
@leandrodamascena can you please take a look at the question above when you can?
Regarding the feature, we're still keeping this non our backlog and will get to it eventually. If anyone has knowledge on the topic and would like to contribute, please leave a comment to claim the issue.
Hi 👋🏼 From the original discussion, I see this concerns app.enable_swagger(). Could you please let me know if it is possible to add multipart/form-data to the request body when using app.get_openapi_json_schema, or is this option currently unavailable as well?
@router.post(
"/user/activities/<activity_id>/assets",
summary="Create asset",
description="Create an asset for a user activity",
responses={
201: {
"description": "Created",
"content": {"application/json": {"model": models.ActivityAssetResponse}},
}
}
| default_openapi_responses, # 400, 409, etc.
tags=["User"],
)
Thank you.
Hey @Hatter1337! Thanks, I think we support it but I'm doing some additional tests to validate if this is working as expected.
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either reopen the issue, or open a new issue referencing this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Activity
leandrodamascena commentedon Jan 22, 2024
Assigned to @rubenfonseca
Hatter1337 commentedon Sep 12, 2024
Hi 👋🏼
From the original discussion, I see this concerns
app.enable_swagger().Could you please let me know if it is possible to add
multipart/form-datato the request body when usingapp.get_openapi_json_schema, or is this option currently unavailable as well?Thank you.
dreamorosi commentedon Jan 24, 2025
@leandrodamascena can you please take a look at the question above when you can?
Regarding the feature, we're still keeping this non our backlog and will get to it eventually. If anyone has knowledge on the topic and would like to contribute, please leave a comment to claim the issue.
leandrodamascena commentedon Jan 29, 2025
Hey @Hatter1337! Thanks, I think we support it but I'm doing some additional tests to validate if this is working as expected.
leandrodamascena commentedon Apr 6, 2026
Closing as complete.
powertools-for-aws-oss-automation commentedon Apr 6, 2026
Warning
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either reopen the issue, or open a new issue referencing this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.