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

from __future__ import annotations

from pydantic import BaseModel, RootModel, constr


class Model(BaseModel):
    constrained_string: constr(min_length=5) | None = None


class StringType(RootModel[str]):
    root: str
