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

from __future__ import annotations

from pydantic import BaseModel, Field, RootModel

from . import Foo as Foo_1
from . import Nested


class Foo(RootModel[str]):
    root: str


class Bar(BaseModel):
    original_foo: Foo_1 | None = Field(
        {'text': 'abc', 'number': 123}, validate_default=True
    )
    nested_foo: list[Nested.Foo] | None = Field(['abc', 'efg'], validate_default=True)
