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

from __future__ import annotations

from typing import Annotated, Literal

from my_app import AliasA
from pydantic import BaseModel, Field


class B(BaseModel):
    type: Literal['b'] | None = None


class Model(BaseModel):
    x: Annotated[AliasA | B | None, Field(validate_default=True)] = {'type': 'b'}
