Check if multiple assets associated with a contract are compliant
curl --request POST \
--url https://{hostname}.gable.ai/v0/contract/bulk-check-compliance \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"contract": {
"contractSchema": [
{
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": "<array>",
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true
}
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true,
"constraints": {}
}
],
"dataAssetResourceNames": [
"<string>"
]
}
}
'{
"results": {}
}Contract with multiple data assets to check
Show child attributes
Show child attributes
struct Show child attributes
struct Array of data asset resource names to check compliance against the contract
The unique identifier of the data asset. It follows the pattern '{data_asset_type}://{data_asset_source}:{data_asset_name}'
Compliance results for each data asset
Map of data asset resource names to their compliance check results
Show child attributes
Show child attributes
Show child attributes
MISSING_REQUIRED_PROPERTY, INCOMPATIBLE_TYPE, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, IS_NULL, IS_NULL_THRESHOLD, IS_NOT_EMPTY, LENGTH, LENGTH_GREATER_THAN, LENGTH_GREATER_THAN_OR_EQUAL_TO, LENGTH_LESS_THAN, LENGTH_LESS_THAN_OR_EQUAL_TO, MISSING_DATA_ASSET, PII_DETECTED curl --request POST \
--url https://{hostname}.gable.ai/v0/contract/bulk-check-compliance \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"contract": {
"contractSchema": [
{
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": "<array>",
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true
}
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true,
"constraints": {}
}
],
"dataAssetResourceNames": [
"<string>"
]
}
}
'{
"results": {}
}