Generic support for data class-based bindings #1326
shreyabatra4
started this conversation in
Ideas
Replies: 1 comment
-
I would suggest to treat Pydantic as a first-class citizen, instead of developing a custom implementation that's inferior to an already widely used library, that's created for the exact same purpose. In addition to that, also treat LiteStar and FastAPI as a first-class citizen for OpenAPI support, which in turn treats Pydantic as an integral part of that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Curious to hear whether generic support for data class-based bindings would improve your experience developing functions.
From this issue:
One possible way to implement generic handling of bindings is to allow users to annotate function parameters with a dataclass. The argument data is then treated as a conforming JSON object.
For example:
In function.json such bindings would then have to specify dataType: json.
Beta Was this translation helpful? Give feedback.
All reactions