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

from __future__ import annotations

from pydantic import BaseModel, ConfigDict, Field, RootModel

from . import food as food_1


class Friend(BaseModel):
    model_config = ConfigDict(
        extra='allow',
    )
    name: str = Field(..., examples=['John Doe'])
    phone_number: str | None = Field(None, examples=['(555) 555-1234'])
    food: list[food_1.Noodle | food_1.Soup] | None = None


class Friends(RootModel[list[Friend]]):
    root: list[Friend] = Field(..., title='Friends')
