Base Models

pydantic model pyil2.models.base.BaseCamelModel

Bases: BaseModel

Base model able to serializes/deserialize JSON data with camelCase field names.

classmethod validate_list_python(entries: List[Dict[str, any]]) List[Self]

Validates a list of standard python objects and returns a list of objects of this class. It will raise a ValidationError from pydantic if the input is not valid.

pydantic model pyil2.models.base.ListModel

Bases: BaseCamelModel, Generic[T]

Base paginated list model.

field items: List[T] [Required]

List of items.

field last_to_first: bool = False (alias 'lastToFirst')

If True, the list of items will be in from newer to older.

field page: int = 0

Current page number.

field page_size: int = 0 (alias 'pageSize')

Number of items in the page.

field total_number_of_pages: int = 0 (alias 'totalNumberOfPages')

Total number of pages.