mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Fix tasks schema prevents sending null container parts
This commit is contained in:
parent
bb15ea6666
commit
8c50f34f8c
@ -1537,7 +1537,7 @@ class Task(NonStrictDataModel):
|
|||||||
"container": {
|
"container": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Docker container parameters",
|
"description": "Docker container parameters",
|
||||||
"additionalProperties": {"type": "string"},
|
"additionalProperties": {"type": ["string", "null"]},
|
||||||
},
|
},
|
||||||
"created": {
|
"created": {
|
||||||
"description": "Task creation time (UTC) ",
|
"description": "Task creation time (UTC) ",
|
||||||
@ -3142,7 +3142,7 @@ class CloneRequest(Request):
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
},
|
},
|
||||||
"new_task_container": {
|
"new_task_container": {
|
||||||
"additionalProperties": {"type": "string"},
|
"additionalProperties": {"type": ["string", "null"]},
|
||||||
"description": "The docker container properties for the new task. If not provided then taken from the original task",
|
"description": "The docker container properties for the new task. If not provided then taken from the original task",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
},
|
},
|
||||||
@ -4103,7 +4103,7 @@ class CreateRequest(Request):
|
|||||||
"container": {
|
"container": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Docker container parameters",
|
"description": "Docker container parameters",
|
||||||
"additionalProperties": {"type": "string"},
|
"additionalProperties": {"type": ["string", "null"]},
|
||||||
},
|
},
|
||||||
"execution": {
|
"execution": {
|
||||||
"$ref": "#/definitions/execution",
|
"$ref": "#/definitions/execution",
|
||||||
@ -6123,7 +6123,7 @@ class EditRequest(Request):
|
|||||||
"container": {
|
"container": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Docker container parameters",
|
"description": "Docker container parameters",
|
||||||
"additionalProperties": {"type": "string"},
|
"additionalProperties": {"type": ["string", "null"]},
|
||||||
},
|
},
|
||||||
"execution": {
|
"execution": {
|
||||||
"$ref": "#/definitions/execution",
|
"$ref": "#/definitions/execution",
|
||||||
@ -8166,7 +8166,7 @@ class GetAllResponse(Response):
|
|||||||
"container": {
|
"container": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Docker container parameters",
|
"description": "Docker container parameters",
|
||||||
"additionalProperties": {"type": "string"},
|
"additionalProperties": {"type": ["string", "null"]},
|
||||||
},
|
},
|
||||||
"created": {
|
"created": {
|
||||||
"description": "Task creation time (UTC) ",
|
"description": "Task creation time (UTC) ",
|
||||||
@ -8700,7 +8700,7 @@ class GetByIdResponse(Response):
|
|||||||
"container": {
|
"container": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Docker container parameters",
|
"description": "Docker container parameters",
|
||||||
"additionalProperties": {"type": "string"},
|
"additionalProperties": {"type": ["string", "null"]},
|
||||||
},
|
},
|
||||||
"created": {
|
"created": {
|
||||||
"description": "Task creation time (UTC) ",
|
"description": "Task creation time (UTC) ",
|
||||||
@ -12187,7 +12187,7 @@ class ValidateRequest(Request):
|
|||||||
"container": {
|
"container": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Docker container parameters",
|
"description": "Docker container parameters",
|
||||||
"additionalProperties": {"type": "string"},
|
"additionalProperties": {"type": ["string", "null"]},
|
||||||
},
|
},
|
||||||
"execution": {
|
"execution": {
|
||||||
"$ref": "#/definitions/execution",
|
"$ref": "#/definitions/execution",
|
||||||
|
Loading…
Reference in New Issue
Block a user