Skip to content

Commit f52cb20

Browse files
committed
chore(openapi): leave FileSchema only (header already supported)
1 parent 1b006c9 commit f52cb20

File tree

1 file changed

+1
-8
lines changed
  • aws_lambda_powertools/event_handler/openapi

1 file changed

+1
-8
lines changed

aws_lambda_powertools/event_handler/openapi/models.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ class OpenAPI(OpenAPIExtensions):
480480

481481
model_config = MODEL_CONFIG_ALLOW
482482

483-
# Helper schemas for new file & header support
483+
# Helper schema for file upload
484484
class FileSchema(BaseModel):
485485
"""OpenAPI 3.0 schema for binary file uploads (multipart/form-data)."""
486486

@@ -490,13 +490,6 @@ class FileSchema(BaseModel):
490490
model_config = MODEL_CONFIG_ALLOW
491491

492492

493-
class HeaderParamSchema(BaseModel):
494-
"""Schema for simple string header parameters."""
495-
496-
type: Literal["string"] = Field("string", const=True)
497-
498-
model_config = MODEL_CONFIG_ALLOW
499-
500493
model_rebuild(Schema)
501494
model_rebuild(Operation)
502495
model_rebuild(Encoding)

0 commit comments

Comments
 (0)