GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python
Native support for Pydantic models for function_framework.typed
Ouverte
enhancement
P3
- Langage dominant
- Python
- Étoiles
- 968
- Forks
- 128
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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!
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.