allow array of documents in task
All checks were successful
Build and Publish / build-release (push) Successful in 1m31s
All checks were successful
Build and Publish / build-release (push) Successful in 1m31s
This commit is contained in:
@@ -79,7 +79,7 @@ defmodule WorkloadServiceWeb.Schemas.Task do
|
||||
valid_until: %Schema{type: :string, format: :date},
|
||||
plans: %Schema{type: :array, items: Plan, minItems: 1},
|
||||
document_data: %Schema{type: :object, additionalProperties: true, nullable: true},
|
||||
document_url: %Schema{type: :string, nullable: true}
|
||||
document_urls: %Schema{type: :array, items: %Schema{type: :string}, nullable: true}
|
||||
}
|
||||
})
|
||||
end
|
||||
@@ -112,7 +112,7 @@ defmodule WorkloadServiceWeb.Schemas.Task do
|
||||
valid_until: %Schema{type: :string, format: :date},
|
||||
plans: %Schema{type: :array, items: Plan, minItems: 1},
|
||||
document_data: %Schema{type: :object, additionalProperties: true, nullable: true},
|
||||
document_url: %Schema{type: :string, nullable: true}
|
||||
document_urls: %Schema{type: :array, items: %Schema{type: :string}, nullable: true}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user