fix(task): restore task metadata contract and type fields in task types api

This commit is contained in:
ryan
2026-08-29 12:22:51 +08:00
parent 49f9d1076f
commit ea97b64407
22 changed files with 704 additions and 133 deletions
+18
View File
@@ -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"
},