from pydantic import BaseModel, Field
class SomeModel(BaseModel):
id: int = Field(...)
some_field_1: int = Field(...)
some_field_2: int = Field(...)
some_field_3: int = Field(...)
from pydantic import BaseModel, Field
class SomeModel(BaseModel):
id: int = Field(..., exclude=True)
some_field_1: int = Field(...)
some_field_2: int = Field(...)
some_field_3: int = Field(...)