Skip to content

ObjectProperty

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  2557463721["typedefs.ObjectProperty"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 2557463721
  2751680898 --> 2645524081

🛈 DocStrings

Bases: PropertyBase

Schema property for nested object types.

Source code in src/schemez/functionschema/typedefs.py
class ObjectProperty(PropertyBase):
    """Schema property for nested object types."""

    type: Literal["object"]
    properties: NotRequired[dict[str, Property]]
    required: NotRequired[list[str]]
    additionalProperties: NotRequired[bool]

:fa-brands-github: Show source on GitHub