Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Oct 24, 2023
1 parent 8e6bc39 commit a42ea34
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 9 deletions.
4 changes: 0 additions & 4 deletions api-specs/connect/examples/connector/ConfigurationKey.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "SECURED_CONFIG_KEY",
"description": "secure config key description",
"required": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "CONFIG_KEY",
"description": "config key description",
"default": "this is the default value"
}
1 change: 1 addition & 0 deletions api-specs/connect/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<name>com.commercetools.rmf.validators.DatetimeRule</name>
<options>
<option type="exclude">datetime</option>
<option type="exclude">timestamp</option>
</options>
</rule>
<rule>
Expand Down
35 changes: 30 additions & 5 deletions api-specs/connect/types/common.raml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,39 @@ types:
comment:
type: string
description: The body text of the comment.
ConfigurationKey:
example: !include ../examples/connector/ConfigurationKey.json
ConfigurationKeyStandard:
example: !include ../examples/connector/ConfigurationKeyStandard.json
description: |
The name, description, and default value of a standard environment variable.
properties:
key:
type: string
description: Name of the environment variable.
description:
type: string
description: Description of the environment variable.
default?:
type: string
description: Default value of the environment variable.
required?:
type: boolean
description: Indicates if the environment variable is required.
default: false
ConfigurationKeySecured:
example: !include ../examples/connector/ConfigurationKeySecured.json
description: |
The name and description of a secret environment variable.
properties:
key:
type: string
description: Name of the environment variable.
description:
type: string
description: Description of the environment variable.
required?:
type: boolean
description: Indicates if the environment variable is required.
default: false
ConfigurationValue:
example: !include ../examples/deployment/ConfigurationValue.json
properties:
Expand All @@ -64,11 +88,12 @@ types:
- service
- event
- job
- mc-app
standardConfiguration:
type: ConfigurationKey[]
description: Contains the name and description of standard environment variables.
type: ConfigurationKeyStandard[]
description: Contains the name, description, and default values of standard environment variables.
securedConfiguration:
type: ConfigurationKey[]
type: ConfigurationKeySecured[]
description: Contains the name and description of secret environment variables.
DeploymentConfigurationApplication:
description: |
Expand Down

0 comments on commit a42ea34

Please sign in to comment.