Skip to content

Commit

Permalink
Remove schema sync
Browse files Browse the repository at this point in the history
  • Loading branch information
paullanoracle committed Jul 1, 2024
1 parent b6dc26f commit a42d558
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 294 deletions.
28 changes: 2 additions & 26 deletions schemas/actions_v01.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,7 @@
"maxLength": 100
}
},
"additionalProperties": false,
"allOf": [
{
"if": {
"required": [ "input" ]
},
"then": {
"not": {
"required": [ "$refOpenapi" ]
}
}
},
{
"if": {
"required": [ "output" ]
},
"then": {
"not": {
"required": [ "$refOpenapi" ]
}
}
}
]
"additionalProperties": false
},
"InputOutput": {
"oneOf": [
Expand Down Expand Up @@ -368,8 +346,7 @@
"^[a-zA-Z0-9\\.\\-_]+$": {
"$ref": "#/definitions/Dependency"
}
},
"minProperties": 1
}
},
"Dependency": {
"type": "object",
Expand All @@ -384,7 +361,6 @@
"uniqueItems": true
}
},
"required": [ "values" ],
"additionalProperties": false
}
}
Expand Down
91 changes: 2 additions & 89 deletions schemas/connection_v01.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
],
"minLength": 6,
"maxLength": 256
},
"connectionInstance": {
"$ref": "#/definitions/ConnectionInstance"
}
},
"required": [
Expand Down Expand Up @@ -266,7 +263,7 @@
"ADD_OAUTH_CLIENT_CREDENTIALS", "OAUTH2.0_CLIENT_CREDENTIALS",
"ADD_OAUTH_RESOURCE_OWNER_PASSWORD_CREDENTIALS", "OAUTH2.0_RESOURCE_OWNER_PASSWORD_CREDENTIALS",
"AWS_SIGNATURE_VERSION4","CAREAWARE_MILLENNIUM_OAUTH_USER_FLOW","CAREAWARE_MILLENNIUM_OAUTH_SYSTEM_FLOW",
"JWT_CLIENT_CREDENTIALS_ASSERTION_FOR_OAUTH","JWT_USER_ASSERTION_FOR_OAUTH","OCI_SERVICE_INVOCATION"
"JWT_CLIENT_CREDENTIALS_ASSERTION_FOR_OAUTH","JWT_USER_ASSERTION_FOR_OAUTH"
]
}
},
Expand Down Expand Up @@ -609,22 +606,6 @@
}
}
}
},
{
"if": {
"properties": {
"policy": {
"const": "OCI_SERVICE_INVOCATION"
}
}
},
"then": {
"not": {
"required": [
"securityProperties"
]
}
}
}
]
}
Expand Down Expand Up @@ -1900,7 +1881,7 @@
"ADD_OAUTH_CLIENT_CREDENTIALS", "OAUTH2.0_CLIENT_CREDENTIALS",
"ADD_OAUTH_RESOURCE_OWNER_PASSWORD_CREDENTIALS", "OAUTH2.0_RESOURCE_OWNER_PASSWORD_CREDENTIALS",
"AWS_SIGNATURE_VERSION4", "CAREAWARE_MILLENNIUM_OAUTH_USER_FLOW","CAREAWARE_MILLENNIUM_OAUTH_SYSTEM_FLOW",
"JWT_CLIENT_CREDENTIALS_ASSERTION_FOR_OAUTH","JWT_USER_ASSERTION_FOR_OAUTH","OCI_SERVICE_INVOCATION"
"JWT_CLIENT_CREDENTIALS_ASSERTION_FOR_OAUTH","JWT_USER_ASSERTION_FOR_OAUTH"
]
}
},
Expand Down Expand Up @@ -2789,74 +2770,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 '<publisher_namespace>:<adapter_id>'.",
"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"
]
},
"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
}
}
}
5 changes: 0 additions & 5 deletions schemas/info_v01.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
46 changes: 0 additions & 46 deletions schemas/mainADD_v01.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading

0 comments on commit a42d558

Please sign in to comment.