Check if the asset associated with the contract is compliant
curl --request POST \
--url https://{hostname}.gable.ai/v0/contract/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": {}
}
],
"dataAssetResourceName": "<string>"
}
}
'{
"violations": [
{
"message": "<string>",
"field": "<string>",
"fieldType": "<string>",
"violationType": "MISSING_REQUIRED_PROPERTY",
"expected": "<string>",
"actual": "<string>"
}
]
}Contract to check
Show child attributes
Show child attributes
struct Show child attributes
struct The unique identifier of the data asset. It follows the pattern '{data_asset_type}://{data_asset_source}:{data_asset_name}'
Data Asset ID
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/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": {}
}
],
"dataAssetResourceName": "<string>"
}
}
'{
"violations": [
{
"message": "<string>",
"field": "<string>",
"fieldType": "<string>",
"violationType": "MISSING_REQUIRED_PROPERTY",
"expected": "<string>",
"actual": "<string>"
}
]
}