mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-03 23:06:36 +08:00
fix(task): restore task metadata contract and type fields in task types api
This commit is contained in:
@@ -4103,6 +4103,9 @@ const docTemplate = `{
|
||||
"contracts.TaskMetaDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"asynq_task": {
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -4127,11 +4130,20 @@ const docTemplate = `{
|
||||
"queue": {
|
||||
"type": "string"
|
||||
},
|
||||
"retryable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"schedule": {
|
||||
"type": "string"
|
||||
},
|
||||
"supports_time": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"timeout": {
|
||||
"$ref": "#/definitions/time.Duration"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -4142,9 +4154,15 @@ const docTemplate = `{
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"placeholder": {
|
||||
"type": "string"
|
||||
},
|
||||
"required": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
||||
@@ -4096,6 +4096,9 @@
|
||||
"contracts.TaskMetaDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"asynq_task": {
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -4120,11 +4123,20 @@
|
||||
"queue": {
|
||||
"type": "string"
|
||||
},
|
||||
"retryable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"schedule": {
|
||||
"type": "string"
|
||||
},
|
||||
"supports_time": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"timeout": {
|
||||
"$ref": "#/definitions/time.Duration"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -4135,9 +4147,15 @@
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"placeholder": {
|
||||
"type": "string"
|
||||
},
|
||||
"required": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
||||
@@ -49,6 +49,8 @@ definitions:
|
||||
type: object
|
||||
contracts.TaskMetaDTO:
|
||||
properties:
|
||||
asynq_task:
|
||||
type: string
|
||||
category:
|
||||
type: string
|
||||
description:
|
||||
@@ -65,18 +67,28 @@ definitions:
|
||||
type: array
|
||||
queue:
|
||||
type: string
|
||||
retryable:
|
||||
type: boolean
|
||||
schedule:
|
||||
type: string
|
||||
supports_time:
|
||||
type: boolean
|
||||
timeout:
|
||||
$ref: '#/definitions/time.Duration'
|
||||
type:
|
||||
type: string
|
||||
type: object
|
||||
contracts.TaskParamDTO:
|
||||
properties:
|
||||
default: {}
|
||||
description:
|
||||
type: string
|
||||
label:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
placeholder:
|
||||
type: string
|
||||
required:
|
||||
type: boolean
|
||||
type:
|
||||
|
||||
Reference in New Issue
Block a user