Order model with nested products.
| 38 | |
| 39 | |
| 40 | class Order(BaseModel): |
| 41 | """Order model with nested products.""" |
| 42 | order_id: str = Field(alias='orderId') |
| 43 | customer_name: str = Field(alias='customerName') |
| 44 | products: list[Product] |
| 45 | total: float |
| 46 | |
| 47 | |
| 48 | def example_simple_model(): |
no outgoing calls
no test coverage detected
searching dependent graphs…