diff --git a/schemas/connection_v01.json b/schemas/connection_v01.json index 13d4224..2b84629 100644 --- a/schemas/connection_v01.json +++ b/schemas/connection_v01.json @@ -21,9 +21,6 @@ ], "minLength": 6, "maxLength": 256 - }, - "connectionInstance": { - "$ref": "#/definitions/ConnectionInstance" } }, "required": [ @@ -2907,76 +2904,6 @@ "additionalProperties": false }, "additionalItems": false - }, - "ConnectionInstance": { - "title": "Connection Instance", - "description": "Pre-defined connection instance for system adapter.", - "type": "object", - "required": [ - "id", - "policy" - ], - "properties": { - "id": { - "title": "Adapter ID", - "description": "The 'id' field identifies the adapter universally. The 'id' MUST have a namespace prefix separated from an identifier with a colon. The format is ':'.", - "type": "string", - "pattern": "^[A-Z][A-Z0-9_]{10,32}$" - }, - "policy": { - "description": "policy points to the name of the pre-defined managed security policy being used. policy should not be used in case of nonManaged security policies.", - "type": "string", - "enum": [ - "OCI_SERVICE_INVOCATION", - "OCI_SIGNATURE_VERSION1", - "NONE", - "OAUTH2.0_CLIENT_CREDENTIALS", - "OAUTH_CLIENT_CREDENTIALS" - ] - }, - "instanceProperties": { - "type": "object", - "patternProperties": { - "^[a-zA-Z][a-zA-Z0-9\\-_]{0,100}$": { - "type": "string", - "maxLength": 1000 - } - } - }, - "attachments": { - "type": "array", - "minItems": 0, - "maxItems": 10, - "uniqueItems": true, - "items": { - "type": "object", - "required": [ - "attachmentName", - "propertyName", - "content" - ], - "properties": { - "attachmentName": { - "type": "string", - "description":"attachment name.", - "maxLength": 100 - }, - "propertyName": { - "type": "string", - "description":"property name.", - "maxLength": 100 - }, - "content": { - "type": "string", - "description":"attachment content.", - "maxLength": 10000 - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false } } } diff --git a/schemas/info_v01.json b/schemas/info_v01.json index 9e32536..d394107 100644 --- a/schemas/info_v01.json +++ b/schemas/info_v01.json @@ -61,11 +61,6 @@ "1.0" ] }, - "systemAdapter": { - "type": "boolean", - "title": "System Adapter", - "description": "This setting allows the adapter runs as a system adapter." - }, "categories": { "title": "Categories", "description": "The categories that applies to the adapter's capabilities, typically associated with the third party system for which the adapter provides integration functionality.", diff --git a/schemas/mainADD_v01.json b/schemas/mainADD_v01.json index 96e1252..2ecd391 100644 --- a/schemas/mainADD_v01.json +++ b/schemas/mainADD_v01.json @@ -75,52 +75,6 @@ } } } - }, - { - "$comment": "connection instance is required for system connection.", - "if": { - "required": [ "info" ], - "properties": { - "info": { - "required": [ "systemAdapter" ], - "properties": { - "systemAdapter": { - "const": true - } - } - } - } - }, - "then": { - "properties": { - "connection": { - "required": [ "connectionInstance" ] - } - } - } - }, - { - "$comment": "connection instance should not present for non system connection.", - "if": { - "properties": { - "info": { - "properties": { - "systemAdapter": { - "const": false - } - } - } - } - }, - "then": { - "not": { - "properties": { - "connection": { - "required": [ "connectionInstance" ] - } - } - } - } } ], "definitions": {