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

from __future__ import annotations

from pydantic import BaseModel, ConfigDict, Field, RootModel, constr


class LookaroundKeyDict(RootModel[dict[str, str]]):
    model_config = ConfigDict(
        regex_engine="python-re",
    )
    root: dict[constr(pattern=r'^(?=.*[A-Z]).+$'), str] = Field(
        ...,
        description='Dict with lookaround pattern on key constraint via patternProperties.',
    )


class Model(BaseModel):
    data: LookaroundKeyDict | None = None
