Organization#

class technote.sources.tomlsettings.Organization(**data)#

Bases: BaseModel

Model for describing an organization (often as an affiliation).

Parameters:

data (Any)

Attributes Summary

model_config

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

Methods Summary

check_well_defined()

Ensure that at least the internal ID, ROR, or name are provided.

clean_whitespace(v)

validate_ror(v)

Ensure that ror is a valid ROR identifier.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

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

Methods Documentation

check_well_defined()#

Ensure that at least the internal ID, ROR, or name are provided.

Return type:

Self

classmethod clean_whitespace(v)#
Parameters:

v (str | None)

Return type:

str | None

classmethod validate_ror(v)#

Ensure that ror is a valid ROR identifier.

Parameters:

v (HttpUrl | None)

Return type:

HttpUrl | None