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

from __future__ import annotations

from typing import List

from pydantic import BaseModel, Extra, Field

from . import food as food_1


class Friend(BaseModel):
    class Config:
        extra = Extra.allow

    name: str = Field(..., example='John Doe')
    phone_number: str | None = Field(None, example='(555) 555-1234')
    food: List[food_1.Noodle | food_1.Soup] | None = None


class Friends(BaseModel):
    __root__: List[Friend] = Field(..., title='Friends')
