-
Notifications
You must be signed in to change notification settings - Fork 438
Open
Labels
Description
Use case
In a BaseModel you can setup an alias_generator.
It would be release nice to have something configurable for e.g. Query
Solution/User Experience
Think about this:
@app.get("/")
def list_something(max_results: Annotated[int, Query(alias="maxResults")]) -> Response[str]:
...
could become something like this:
class CamelCaseQuery(Query):
field_config = {"alias_generator": alias_generators.to_camel}
@app.get("/")
def list_something(max_results: Annotated[int, CamelCaseQuery()]) -> Response[str]:
...
Alternative solutions
Acknowledgment
- This feature request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog