add min/max constrained int field to pydantic json schema example

This commit is contained in:
ochafik 2024-06-10 02:00:04 +01:00
parent cad377d3a1
commit d6483a9c07

View file

@ -53,6 +53,7 @@ if __name__ == '__main__':
question: str
concise_answer: str
justification: str
stars: Annotated[int, Field(ge=1, le=5)]
class PyramidalSummary(BaseModel):
title: str