Files
openapi-first/openapi_first/templates/model_app/models.py
Vishesh 'ironeagle' Bangotra 40d91bc52b feat(scaffold): add model-backed CRUD service template
Provides a complete OpenAPI-first CRUD example with a Pydantic
model layer, explicit runtime semantics, and integration tests
to support developer onboarding and real-world service structure.
2026-01-10 18:05:39 +05:30

19 lines
220 B
Python

"""
Pydantic domain models for the CRUD example.
"""
from pydantic import BaseModel
class ItemBase(BaseModel):
name: str
price: float
class ItemCreate(ItemBase):
pass
class Item(ItemBase):
id: int