{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "automation-db", "title": "Automation Document", "description": "An Automation document as it is stored in the database.", "required": [ "name", "description", "componentType", "createdBy", "created", "lastUpdatedBy", "lastUpdated", "_id", "gbac", "componentId" ], "propertyNames": { "anyOf": [ { "$ref": "automation-common#/definitions/commonFieldNames" }, { "$ref": "common#/definitions/metadataFieldNames" }, { "enum": [ "_id", "gbac", "componentId" ] } ] }, "allOf": [ { "$ref": "automation-common#/definitions/commonFields" }, { "$ref": "common#/definitions/metadataFields" }, { "type": "object", "properties": { "_id": { "$ref": "common#/definitions/ObjectId" }, "gbac": { "$ref": "automation-common#/definitions/gbac" }, "componentId": { "$ref": "automation-common#/definitions/componentId" } } } ] }