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

from __future__ import annotations

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


class LookaroundMixedConstraints(RootModel[str | conint(ge=0, le=100)]):
    model_config = ConfigDict(
        regex_engine="python-re",
    )
    root: constr(pattern=r'^(?=.*[A-Z]).+$', min_length=1) | conint(ge=0, le=100) = (
        Field(
            ...,
            description='RootModel with union of constr (lookahead) and conint to test base_type_hint fallback.',
            title='LookaroundMixedConstraints',
        )
    )
