arche.rules.json_schema

Module Contents

arche.rules.json_schema.validate(schema: RawSchema, raw_items: RawItems, keys: pd.Index, fast: bool = False) → Result

Run JSON schema validation against data.

Parameters

fast – defines if we use fastjsonschema or jsonschema validation

Returns

Schema errors if any

arche.rules.json_schema.check_tags(source_columns: np.ndarray, target_columns: np.ndarray, tags: TaggedFields) → Result

Check tags from schema.

Returns

Used tags. Errors if tagged fields are not in source or target columns.