GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python
Native support for Pydantic models for function_framework.typed
Aperta
enhancement
P3
- Lingua principale
- Python
- Stelle
- 968
- Fork
- 128
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Following https://github.com/GoogleCloudPlatform/functions-framework-python/pull/208#issuecomment-1832951749,
it will be great to have [Pydantic](https://docs.pydantic.dev/latest/) models supported natively. E.g.
```python
from pydantic import BaseModel
class HelloRequest(BaseModel):
name: str
@functions_framework.typed
def hello(hr: HelloRequest):
return f"Hello, {hr.name}"
```
Thank you!
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.