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

from __future__ import annotations

from pydantic import BaseModel


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


class ParentWithMixedChildRequest(BaseModel):
    child: ChildMixedRequest | None = None


class ParentWithChildListRequest(BaseModel):
    children: list[ChildMixedRequest] | None = None


class ChildOnlyReadOnly(BaseModel):
    id: int | None = None


class ChildOnlyWriteOnly(BaseModel):
    secret: str | None = None


class ParentWithOnlyReadOnlyChildRequest(BaseModel):
    child: ChildOnlyReadOnly | None = None


class ParentWithOnlyWriteOnlyChildResponse(BaseModel):
    child: ChildOnlyWriteOnly | None = None
