LicenseTable#

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

Bases: BaseModel

A model for [technote.license] in technote.toml, which describes the content’s license.

Parameters:

data (Any)

Attributes Summary

model_config

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

Methods Summary

validate_spdx_id(v)

Ensure that id is a SPDX license identifier.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

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

Methods Documentation

classmethod validate_spdx_id(v)#

Ensure that id is a SPDX license identifier.

Parameters:

v (str)

Return type:

str