Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
engine-strict=true
legacy-peer-deps=true
49 changes: 49 additions & 0 deletions api/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2180,6 +2180,9 @@ components:
type: object
additionalProperties:
$ref: '#/components/schemas/ConfigProperty'
optionsEndpoint:
$ref: '#/components/schemas/OptionsEndpoint'
description: REST endpoint to fetch options dynamically at runtime
required:
- type
ConfigSchema:
Expand Down Expand Up @@ -3602,6 +3605,52 @@ components:
items:
type: string
description: Improvement suggestions
OptionsEndpoint:
type: object
description: Configuration for fetching select field options from a REST endpoint at runtime
required:
- url
properties:
url:
type: string
description: URL to fetch options from. Supports template variables {nodeTypeId}, {instanceId}, {workflowId}
example: /api/flowdrop/secrets
method:
type: string
enum:
- GET
- POST
default: GET
description: HTTP method for the request
headers:
type: object
additionalProperties:
type: string
description: Custom headers to include in the request
parameterMapping:
type: object
additionalProperties:
type: string
description: Maps template variables to node context paths
example:
nodeTypeId: metadata.id
instanceId: id
valuePath:
type: string
default: value
description: JSON path to extract option value from each item
labelPath:
type: string
default: label
description: JSON path to extract option label from each item
cacheTtl:
type: integer
default: 300000
description: Cache TTL in milliseconds (default 5 minutes)
timeout:
type: integer
default: 10000
description: Request timeout in milliseconds
responses:
BadRequest:
description: Bad request - invalid parameters or request body
Expand Down
50 changes: 49 additions & 1 deletion api/components/schemas/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ PortConfig:
version:
type: string
description: Version of the port configuration
example: "1.0.0"
example: '1.0.0'
defaultDataType:
type: string
description: Default data type to use when none specified
Expand All @@ -85,6 +85,51 @@ PortConfig:
- dataTypes
- defaultDataType

OptionsEndpoint:
type: object
description: Configuration for fetching select field options from a REST endpoint at runtime
required:
- url
properties:
url:
type: string
description: URL to fetch options from. Supports template variables {nodeTypeId}, {instanceId}, {workflowId}
example: '/api/flowdrop/secrets'
method:
type: string
enum: [GET, POST]
default: GET
description: HTTP method for the request
headers:
type: object
additionalProperties:
type: string
description: Custom headers to include in the request
parameterMapping:
type: object
additionalProperties:
type: string
description: Maps template variables to node context paths
example:
nodeTypeId: 'metadata.id'
instanceId: 'id'
valuePath:
type: string
default: 'value'
description: JSON path to extract option value from each item
labelPath:
type: string
default: 'label'
description: JSON path to extract option label from each item
cacheTtl:
type: integer
default: 300000
description: Cache TTL in milliseconds (default 5 minutes)
timeout:
type: integer
default: 10000
description: Request timeout in milliseconds

ConfigProperty:
type: object
properties:
Expand Down Expand Up @@ -143,6 +188,9 @@ ConfigProperty:
type: object
additionalProperties:
$ref: '#/ConfigProperty'
optionsEndpoint:
$ref: '#/OptionsEndpoint'
description: REST endpoint to fetch options dynamically at runtime
required:
- type

Expand Down
Loading
Loading