mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Validate numeric ids in the public API (#5251)
This was incorrectly changed in https://github.com/n8n-io/n8n/pull/5041
This commit is contained in:
parent
c8a146ba31
commit
68e4083bbd
|
@ -12,7 +12,7 @@ delete:
|
||||||
description: The credential ID that needs to be deleted
|
description: The credential ID that needs to be deleted
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: number
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Operation successful.
|
description: Operation successful.
|
||||||
|
|
|
@ -5,9 +5,9 @@ required:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: number
|
||||||
readOnly: true
|
readOnly: true
|
||||||
example: '42'
|
example: 42
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
example: Joe's Github Credentials
|
example: Joe's Github Credentials
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: number
|
||||||
example: '1000'
|
example: 1000
|
||||||
data:
|
data:
|
||||||
type: object
|
type: object
|
||||||
finished:
|
finished:
|
||||||
|
@ -12,10 +12,10 @@ properties:
|
||||||
type: string
|
type: string
|
||||||
enum: ['cli', 'error', 'integrated', 'internal', 'manual', 'retry', 'trigger', 'webhook']
|
enum: ['cli', 'error', 'integrated', 'internal', 'manual', 'retry', 'trigger', 'webhook']
|
||||||
retryOf:
|
retryOf:
|
||||||
type: string
|
type: number
|
||||||
nullable: true
|
nullable: true
|
||||||
retrySuccessId:
|
retrySuccessId:
|
||||||
type: string
|
type: number
|
||||||
nullable: true
|
nullable: true
|
||||||
example: '2'
|
example: '2'
|
||||||
startedAt:
|
startedAt:
|
||||||
|
@ -25,7 +25,7 @@ properties:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
workflowId:
|
workflowId:
|
||||||
type: string
|
type: number
|
||||||
example: '1000'
|
example: '1000'
|
||||||
waitTill:
|
waitTill:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
@ -3,4 +3,4 @@ in: path
|
||||||
description: The ID of the execution.
|
description: The ID of the execution.
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: number
|
||||||
|
|
|
@ -3,4 +3,4 @@ in: path
|
||||||
description: The ID of the workflow.
|
description: The ID of the workflow.
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: number
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: number
|
||||||
example: '12'
|
example: 12
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
example: Production
|
example: Production
|
||||||
|
|
|
@ -7,9 +7,9 @@ required:
|
||||||
- settings
|
- settings
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: number
|
||||||
readOnly: true
|
readOnly: true
|
||||||
example: '1'
|
example: 1
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
example: Workflow 1
|
example: Workflow 1
|
||||||
|
|
|
@ -16,8 +16,8 @@ properties:
|
||||||
example: 3600
|
example: 3600
|
||||||
maxLength: 3600
|
maxLength: 3600
|
||||||
errorWorkflow:
|
errorWorkflow:
|
||||||
type: string
|
type: number
|
||||||
example: '10'
|
example: 10
|
||||||
description: The ID of the workflow that contains the error trigger node.
|
description: The ID of the workflow that contains the error trigger node.
|
||||||
timezone:
|
timezone:
|
||||||
type: string
|
type: string
|
||||||
|
|
Loading…
Reference in a new issue