BaseObject

pydantic model felis.datamodel.BaseObject

Base model.

All classes representing objects in the Felis data model should inherit from this class.

Parameters:

data (Any)

Fields:
Validators:
field description: DescriptionStr | None = None

Description of the database object.

Validated by:
field id: str [Required] (alias '@id')

Unique identifier of the database object.

Validated by:
field name: str [Required]

Name of the database object.

Validated by:
field votable_utype: str | None = None (alias 'votable:utype')

VOTable utype (usage-specific or unique type) of the object.

Validated by:
validator check_description  »  all fields

Check that the description is present if required.

Parameters:

info (ValidationInfo) – Validation context used to determine if the check is enabled.

Returns:

The object being validated.

Return type:

BaseObject