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:
कारतोफ्फेलस्क्रिप्ट™ 2023-01-26 11:46:00 +01:00 committed by GitHub
parent c8a146ba31
commit 68e4083bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 16 deletions

View file

@ -12,7 +12,7 @@ delete:
description: The credential ID that needs to be deleted
required: true
schema:
type: string
type: number
responses:
'200':
description: Operation successful.

View file

@ -5,9 +5,9 @@ required:
type: object
properties:
id:
type: string
type: number
readOnly: true
example: '42'
example: 42
name:
type: string
example: Joe's Github Credentials

View file

@ -1,8 +1,8 @@
type: object
properties:
id:
type: string
example: '1000'
type: number
example: 1000
data:
type: object
finished:
@ -12,10 +12,10 @@ properties:
type: string
enum: ['cli', 'error', 'integrated', 'internal', 'manual', 'retry', 'trigger', 'webhook']
retryOf:
type: string
type: number
nullable: true
retrySuccessId:
type: string
type: number
nullable: true
example: '2'
startedAt:
@ -25,7 +25,7 @@ properties:
type: string
format: date-time
workflowId:
type: string
type: number
example: '1000'
waitTill:
type: string

View file

@ -3,4 +3,4 @@ in: path
description: The ID of the execution.
required: true
schema:
type: string
type: number

View file

@ -3,4 +3,4 @@ in: path
description: The ID of the workflow.
required: true
schema:
type: string
type: number

View file

@ -1,8 +1,8 @@
type: object
properties:
id:
type: string
example: '12'
type: number
example: 12
name:
type: string
example: Production

View file

@ -7,9 +7,9 @@ required:
- settings
properties:
id:
type: string
type: number
readOnly: true
example: '1'
example: 1
name:
type: string
example: Workflow 1

View file

@ -16,8 +16,8 @@ properties:
example: 3600
maxLength: 3600
errorWorkflow:
type: string
example: '10'
type: number
example: 10
description: The ID of the workflow that contains the error trigger node.
timezone:
type: string