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

from __future__ import annotations

from msgspec import UNSET, Struct, UnsetType, convert, field
from msgspec.inspect import Type


class N(Struct):
    n: int | UnsetType = UNSET


class J(Type):
    r: str
    j: int | UnsetType = 1
    tags: list[str] | UnsetType = field(default_factory=lambda: ['a'])
    nested: N | UnsetType = field(default_factory=lambda: convert({'n': 2}, type=N))


class K(Struct):
    k: int | UnsetType = UNSET


class Payload(Struct):
    r: str
    j: int | UnsetType = 1
    tags: list[str] | UnsetType = field(default_factory=lambda: ['a'])
    nested: N | UnsetType = field(default_factory=lambda: convert({'n': 2}, type=N))
    k: int | UnsetType = UNSET
