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

from __future__ import annotations

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


class RedefinedCode(RootModel[constr(min_length=4)]):
    root: constr(min_length=4) = Field(..., title='RedefinedCode')


class ChameleonType(BaseModel):
    chameleonValue: str


class OverriddenType(BaseModel):
    newValue: str


class Container(BaseModel):
    chameleon: ChameleonType
    code: RedefinedCode
    newGroupElement: str
    overrideValue: OverriddenType
    newAttr: conint(ge=-2147483648, le=2147483647) | None = None


class ContainerModel(Container):
    pass
