Check if the asset associated with the contract is compliant
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/contract/check-compliance' \
--header 'Content-Type: application/json' \
--data '{
"contract": {
"contractSchema": [
{
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": [
"<any>"
],
"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
The body is of type object
.
Data Asset ID
The response is of type object
.
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/contract/check-compliance' \
--header 'Content-Type: application/json' \
--data '{
"contract": {
"contractSchema": [
{
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": [
"<any>"
],
"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>"
}
]
}