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

from __future__ import annotations

from pydantic import Field, RootModel, constr


class PropertyNamesRefWithConstraints(
    RootModel[dict[constr(pattern=r'^x_', min_length=4), int]]
):
    root: dict[constr(pattern=r'^x_', min_length=4), int] = Field(
        ..., title='PropertyNamesRefWithConstraints'
    )


class KeyName(RootModel[constr(min_length=4)]):
    root: constr(min_length=4)
