structure.py¶
Required fields for the different data types.
-
structure.
dataset
()[source]¶ Provide a basic data structure for a dataset.
- Returns
the data structure for datasets
- Return type
dict
-
structure.
order
()[source]¶ Provide a basic data structure for an order.
- Returns
the data structure for orders
- Return type
dict
-
structure.
order_validator
(data: dict)[source]¶ Validate the content of the fields of an incoming order.
- Parameters
data (dict) – order to check
- Raises
ValueError – bad incoming data