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

from __future__ import annotations

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


class LookaroundUnion(RootModel[str | int]):
    model_config = ConfigDict(
        regex_engine="python-re",
    )
    root: constr(pattern=r'^(?=.*[A-Z]).+$') | int = Field(
        ..., description='Union with lookaround pattern.'
    )


class Model(BaseModel):
    value: LookaroundUnion | None = None
