Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plan-OIC-56403: RAB VSCode: Should not allow user to select more than 200 items for both Postman Collection requests and OpenAPI method:paths #49

Merged
merged 8 commits into from
Jul 1, 2024
28 changes: 26 additions & 2 deletions schemas/actions_v01.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,29 @@
"maxLength": 100
}
},
"additionalProperties": false
"additionalProperties": false,
"allOf": [
{
"if": {
"required": [ "input" ]
},
"then": {
"not": {
"required": [ "$refOpenapi" ]
}
}
},
{
"if": {
"required": [ "output" ]
},
"then": {
"not": {
"required": [ "$refOpenapi" ]
}
}
}
]
},
"InputOutput": {
"oneOf": [
Expand Down Expand Up @@ -346,7 +368,8 @@
"^[a-zA-Z0-9\\.\\-_]+$": {
"$ref": "#/definitions/Dependency"
}
}
},
"minProperties": 1
},
"Dependency": {
"type": "object",
Expand All @@ -361,6 +384,7 @@
"uniqueItems": true
}
},
"required": [ "values" ],
"additionalProperties": false
}
}
Expand Down
91 changes: 89 additions & 2 deletions schemas/connection_v01.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
],
"minLength": 6,
"maxLength": 256
},
"connectionInstance": {
"$ref": "#/definitions/ConnectionInstance"
}
},
"required": [
Expand Down Expand Up @@ -263,7 +266,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"
"JWT_CLIENT_CREDENTIALS_ASSERTION_FOR_OAUTH","JWT_USER_ASSERTION_FOR_OAUTH","OCI_SERVICE_INVOCATION"
]
}
},
Expand Down Expand Up @@ -606,6 +609,22 @@
}
}
}
},
{
"if": {
"properties": {
"policy": {
"const": "OCI_SERVICE_INVOCATION"
}
}
},
"then": {
"not": {
"required": [
"securityProperties"
]
}
}
}
]
}
Expand Down Expand Up @@ -1881,7 +1900,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"
"JWT_CLIENT_CREDENTIALS_ASSERTION_FOR_OAUTH","JWT_USER_ASSERTION_FOR_OAUTH","OCI_SERVICE_INVOCATION"
]
}
},
Expand Down Expand Up @@ -2770,6 +2789,74 @@
"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: 5 additions & 0 deletions schemas/info_v01.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"1.0"
]
},
"systemAdapter": {
paullanoracle marked this conversation as resolved.
Show resolved Hide resolved
"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: 46 additions & 0 deletions schemas/mainADD_v01.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,52 @@
}
}
}
},
{
"$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
Loading