{ "$id": "deviceReport", "title": "Compliance report for a device", "description": "Schema for compliance report of a device", "type": "object", "properties": { "_id": { "type": "string", "examples": [ "ios0", "iosxr0", "junos0", "arista0" ] }, "leaf": { "$ref": "IDType" }, "date": { "type": "string", "examples": [ "Fri Apr 26 09:56:38 EDT 2019", "Thu Apr 25 09:56:38 EDT 2019", "Wed Apr 24 09:56:38 EDT 2019" ] }, "score": { "type": "number", "minimum": 0, "maximum": 100 }, "rules": { "type": "number", "multipleOf": 1 }, "errors": { "type": "array", "items": { "$ref": "complianceError" } }, "warnings": { "type": "array", "items": { "$ref": "complianceError" } }, "notices": { "type": "array", "items": { "$ref": "complianceError" } } }, "required": [ "_id", "leaf", "date", "rules", "score", "errors", "warnings", "notices" ] }