{
"$schema" : "http://json-schema.org/draft-04/schema#",
"title" : "Validate Scheme Rules Response",
"type" : "object",
"additionalProperties" : false,
"properties" : {
"responseId" : {
"type" : "string"
},
"requestId" : {
"type" : "string"
},
"processingContext" : {
"$ref" : "#/definitions/ProcessingContext"
},
"version" : {
"$ref" : "#/definitions/Version"
},
"createdAt" : { },
"payload" : {
"$ref" : "#/definitions/Payload(ValidationFailure)"
},
"status" : {
"type" : "string",
"enum" : [ "SUCCESS", "REJECT", "FAILURE", "PENDING" ]
},
"schemeName" : {
"type" : "string"
},
"customBusinessData" : {
"$ref" : "#/definitions/SupportingContext"
},
"schemeFormatMessage" : {
"type" : "string"
}
},
"definitions" : {
"ProcessingContext" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"associationId" : {
"type" : "string"
},
"checkpoint" : {
"type" : "string"
},
"unitOfWorkId" : {
"type" : "string"
},
"clientRequestId" : {
"type" : "string"
},
"processingEntity" : {
"type" : "string"
}
}
},
"Version" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"major" : {
"type" : "integer"
},
"minor" : {
"type" : "integer"
},
"patch" : {
"type" : "integer"
}
}
},
"Payload(ValidationFailure)" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"content" : {
"$ref" : "#/definitions/ValidationFailure"
},
"version" : {
"$ref" : "#/definitions/Version"
}
}
},
"ValidationFailure" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"reasonCode" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"expectedValue" : {
"type" : "string"
},
"actualValue" : {
"type" : "string"
}
}
},
"SupportingContext" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"headers" : {
"$ref" : "#/definitions/SupportingHeader"
},
"metaData" : {
"$ref" : "#/definitions/SupportingMetaData"
}
}
},
"SupportingHeader" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"values" : {
"type" : "object",
"additionalProperties" : {
"type" : "string"
}
}
}
},
"SupportingMetaData" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"values" : {
"type" : "object",
"additionalProperties" : {
"type" : "string"
}
}
}
}
}
}