leaf_engine.io.api.crud_openapi
Attributes
Functions
|
Gets CRUD API schema. |
|
Validates record against schema. |
|
Returns a mapping of column names and data types for a given table. Returns |
|
Validates network move record. |
|
Validates raw shipment or raw lane record. |
Module Contents
- leaf_engine.io.api.crud_openapi._validate(record: Mapping[str, Any], schema: Mapping[str, Any]) None
Validates record against schema.
- leaf_engine.io.api.crud_openapi.get_columns(table_name: str) Mapping[str, Any]
Returns a mapping of column names and data types for a given table. Returns all properties defined, and does not distinguish between required or not.
- leaf_engine.io.api.crud_openapi.validate_network_move(record: Mapping[str, Any]) None
Validates network move record.
- Raises:
ValidationError – Raises when record is invalid.
- Parameters:
record (Mapping[str, Any]) – Network move record.
- Return type:
None
- leaf_engine.io.api.crud_openapi.validate_raw_insert(record: Mapping[str, Any], table_name: str) None
Validates raw shipment or raw lane record.
- leaf_engine.io.api.crud_openapi.OPENAPI_ENDPOINT
- leaf_engine.io.api.crud_openapi.OPENAPI_TOKEN
- leaf_engine.io.api.crud_openapi.schemas