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

from __future__ import annotations

from pydantic import BaseModel, Field, RootModel, confloat


class ModelSettingB(RootModel[confloat(ge=0.0, le=10.0)]):
    root: confloat(ge=0.0, le=10.0) = 5


class Model(BaseModel):
    settingA: confloat(ge=0.0, le=10.0) | None = 5
    settingB: ModelSettingB | None = Field(5, validate_default=True)
