# generated by datamodel-codegen:
#   filename:  empty_field_name.json

from __future__ import annotations

from pydantic import BaseModel, Field, RootModel


class RequiredEmpty(BaseModel):
    field_: str = Field(..., alias='')
    a: str | None = None


class OptionalEmpty(BaseModel):
    field_: str | None = Field(None, alias='')
    a: str | None = None


class AllOfRequiredEmpty(BaseModel):
    field_: str = Field(..., alias='')
    a: str | None = None


class AllOfOverrideEmpty(OptionalEmpty):
    field_: str = Field(..., alias='')


class ReadWriteEmptyRequest(BaseModel):
    field__1: int = Field(..., alias='field_')
    shared: bool | None = None


class ReadWriteEmptyResponse(BaseModel):
    field_: str = Field(..., alias='')
    shared: bool | None = None


class ReadWriteEmpty(BaseModel):
    field_: str = Field(..., alias='')
    field__1: int = Field(..., alias='field_')
    shared: bool | None = None


class EmptyFieldRoot(RootModel[RequiredEmpty]):
    root: RequiredEmpty = Field(..., title='EmptyFieldRoot')
