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

from __future__ import annotations

from pydantic import BaseModel


class BaseRequest(BaseModel):
    name: str | None = None


class Base(BaseModel):
    id: int | None = None
    name: str | None = None


class ParentRequest(BaseModel):
    name: str | None = None
    parent_field: str | None = None


class Parent(Base):
    parent_field: str | None = None


class ChildRequest(BaseModel):
    name: str | None = None
    parent_field: str | None = None
    extra: str | None = None


class ChildResponse(BaseModel):
    id: int | None = None
    name: str | None = None
    parent_field: str | None = None


class Child(Parent):
    extra: str | None = None
