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

from __future__ import annotations

from pydantic import BaseModel, RootModel


class NullableString(RootModel[str | None]):
    root: str | None


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


class NullOnly(RootModel[None]):
    root: None


class Model(BaseModel):
    nullableRef: NullableString | None
    nonNullableRef: NonNullableString
    nullOnlyRef: NullOnly | None
