skytracker.models.model.APIBaseModel#

class skytracker.models.model.APIBaseModel#

Bases: BaseModel

Generic base model for API responses

Properties

model_config

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

Methods

pre_processing

Perform common pre-processing steps

__init__(**data: Any) None#

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.

classmethod pre_processing(value: Any, info: ValidationInfo) Any#

Perform common pre-processing steps

Parameters:
  • value (Any) – value to process

  • info (ValidationInfo) – field information

Returns:

processed value

Return type:

Any

model_config: ClassVar[ConfigDict] = {}#

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