ExtensionDefinitionRecord

class ExtensionDefinitionRecord(*, slot_name: str, property: str | None = None, type_hint: str | None = None)[source]

Bases: BaseModel

An extension definition that can be readily dumped to SSSOM.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

process(converter)

Process the SSSOM data structure into a more idiomatic one.

Attributes Documentation

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Documentation

process(converter: Converter) ExtensionDefinition[source]

Process the SSSOM data structure into a more idiomatic one.