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

from __future__ import annotations

from pydantic import BaseModel, ConfigDict


class Foo(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    x: int | None = None


class Bar(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    y: int | None = None


class Baz(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    z: int | None = None


class Test(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    foo: Foo
    bar: Bar | None = None
    baz: Baz | None = None
