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

from __future__ import annotations

from typing import Literal

from pydantic import BaseModel, Field, RootModel


class SomeType(BaseModel):
    name: str | None = None


class MixedUnion(RootModel[Literal['value1'] | SomeType]):
    root: Literal['value1'] | SomeType = Field(..., title='MixedUnion')
