# generated by datamodel-codegen:
#   filename:  constrained_types_keyword_order.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from pydantic import BaseModel, Field, confloat, conint, constr


class Model(BaseModel):
    count: conint(le=200, gt=0)
    ratio: confloat(ge=0.5, multiple_of=0.1, lt=1.5) | None = None
    name: constr(pattern=r'^[a-z]+$', min_length=2, max_length=10)
    tags: list[str] | None = Field(None, max_length=5, min_length=1)
