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

from __future__ import annotations

from typing import Any

from pydantic import BaseModel, Field, RootModel


class AlwaysValid(RootModel[Any]):
    root: Any


class User(BaseModel):
    id: str
    kind: str


class UserAlias(RootModel[User]):
    root: User = Field(..., discriminator='kind')


class AsyncAPIModelPayload(BaseModel):
    generated: str | None = None


class HeaderOnlyHeaders(BaseModel):
    token: str | None = None


class UserEventsPublishMessage1Payload(RootModel[User]):
    root: User


class UserEventsPublishMessage2Headers(BaseModel):
    correlationId: str | None = None


class UserEventsUserDeletedPayload(BaseModel):
    userId: str


class ReceiveUserEventsMessage2Payload(BaseModel):
    retry: bool | None = None
