# 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 Optional, Union

from pydantic import BaseModel, Field


class SomeType(BaseModel):
    name: Optional[str] = None


class MixedUnion(BaseModel):
    __root__: Union[str, SomeType] = Field(..., title='MixedUnion')
