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

from __future__ import annotations

from pydantic import BaseModel


class UserRequest(BaseModel):
    name: str
    metadata: str | int | None = None


class UserResponse(BaseModel):
    id: int
    name: str


class User(BaseModel):
    id: int
    name: str
    metadata: str | int | None = None
