Код: Выделить всё
class Algorithm(BaseModel):
id: ID = Field(examples=[1], description="ID of the algorithm")
project_id: ID = Field(examples=[1], description="ID of the project")
Код: Выделить всё
class Algorithm(BaseModel):
"""
Algorithm
""" # noqa: E501
id: StrictInt = Field(description="ID of the algorithm")
project_id: StrictInt = Field(description="ID of the project")
может кто -нибудь указать на направление относительно того, как это может быть достигнуто? У меня нет этой проблемы с DataModel-codegen , и это правильно.
Подробнее здесь: https://stackoverflow.com/questions/797 ... tic-models