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

from __future__ import annotations

from pydantic import AwareDatetime, BaseModel


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


class Error(BaseModel):
    code: int
    message: str


class ErrorResponse(BaseModel):
    error: Error
    timestamp: AwareDatetime


class UserResponse(BaseModel):
    user: User
    request_id: str
