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

from __future__ import annotations

from typing import Any, Literal

from pydantic import BaseModel, Field, RootModel


class ConstWithProps1(BaseModel):
    invalid: Any | None = None


class ConstWithProps(RootModel[ConstWithProps1 | Literal['value2']]):
    root: ConstWithProps1 | Literal['value2'] = Field(..., title='ConstWithProps')
