Commit f5f56840 authored by Bastien Durel's avatar Bastien Durel
Browse files

hand-crafted schema file

parent d05e1280
{
"organization-name": "string",
"date-range": {
"start-datetime": "string",
"end-datetime": "string"
},
"contact-info": "string",
"report-id": "string",
"policies": [{
"policy": {
"policy-type": "string",
"policy-string": "string",
"policy-domain": "string",
"mx-host": "string"
},
"summary": {
"total-successful-session-count": "string",
"total-failure-session-count": "string"
},
"failure-details": [
{
"result-type": "string",
"sending-mta-ip": "string",
"receiving-mx-hostname": "string",
"receiving-mx-helo": "string",
"receiving-ip": "string",
"failed-session-count": "string",
"additional-information": "string",
"failure-reason-code": "string"
}
]
}
]
}
"type": "object",
"properties": {
"organization-name": "#/definitions/organization-name",
"date-range": "#/definitions/date-range",
"contact-info": "#/definitions/email-address",
"report-id": "#/definitions/report-id",
"policies": "#/definitions/policies"
},
"required": ["organization-name","contact-info"],
"definitions": {
"date-range" : {
"type": "object",
"properties": {
"start-datetime": "#/definitions/date-time",
"end-datetime": "#/definitions/date-time"
}
},
"policy" : {
"type": "object",
"properties": {
"policy-type": "#/definitions/policy-type",
"policy-string": "#/definitions/policy-string",
"policy-domain": "#/definitions/domain",
"mx-host": "#/definitions/mx-host-pattern"
}
},
"summary" : {
"type": "object",
"properties": {
"total-successful-session-count": "#/definitions/total-successful-session-count",
"total-failure-session-count": "#/definitions/total-failure-session-count"
}
},
"failure-detail-element" : {
"type": "object",
"properties": {
"result-type": "#/definitions/result-type",
"sending-mta-ip": "#/definitions/ip-address",
"receiving-mx-hostname": "#/definitions/receiving-mx-hostname",
"receiving-mx-helo": "#/definitions/receiving-mx-helo",
"receiving-ip": "#/definitions/ip-address",
"failed-session-count": "#/definitions/failed-session-count",
"additional-information": "#/definitions/additional-information",
"failure-reason-code": "#/definitions/failure-reason-code"
}
},
"policies" : {
"type": "array",
"items" : {
"type": "#/definitions/policy"
}
},
"failure-details" : {
"type": "array",
"items" : {
"type": "#/definitions/failure-detail-element"
}
},
"total-successful-session-count" : {
"type": "integer",
"minimum" : 0
},
"total-failure-session-count" : {
"type": "integer",
"minimum" : 0
},
"failed-session-count" : {
"type": "integer",
"minimum" : 0
},
"organization-name" : {
"type": "string"
},
"date-time" : {
"type": "string"
},
"email-address" : {
"type": "string"
},
"report-id" : {
"type": "string"
},
"policy-type" : {
"type": "string"
},
"policy-string" : {
"type": "string"
},
"domain" : {
"type": "string"
},
"mx-host-pattern" : {
"type": "string"
},
"result-type" : {
"type": "string"
},
"ip-address" : {
"type": "string"
},
"receiving-mx-hostname" : {
"type": "string"
},
"receiving-mx-helo" : {
"type": "string"
},
"additional-info-uri" : {
"type": "string"
},
"failure-reason-code" : {
"type": "string"
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment