This commit is contained in:
@@ -144,7 +144,10 @@ defmodule WorkloadServiceWeb.Schemas.Task do
|
||||
application_id: %Schema{type: :string},
|
||||
policy_type: %Schema{type: :string, enum: ["car", "life", "fire"]},
|
||||
task_info: %Schema{oneOf: [QuoteTaskInfo, SolicitationTaskInfo]},
|
||||
status: %Schema{type: :string, enum: ["created", "draft", "approved", "completed"]},
|
||||
status: %Schema{
|
||||
type: :string,
|
||||
enum: ["created", "draft", "approval_requested", "approved", "completed"]
|
||||
},
|
||||
created_at: %Schema{type: :string, format: :"date-time"}
|
||||
}
|
||||
})
|
||||
@@ -167,7 +170,10 @@ defmodule WorkloadServiceWeb.Schemas.Task do
|
||||
nullable: true
|
||||
},
|
||||
attachments: %Schema{type: :array, items: %Schema{type: :string}},
|
||||
status: %Schema{type: :string, enum: ["created", "draft", "approved", "completed"]},
|
||||
status: %Schema{
|
||||
type: :string,
|
||||
enum: ["created", "draft", "approval_requested", "approved", "completed"]
|
||||
},
|
||||
created_at: %Schema{type: :string, format: :"date-time"},
|
||||
updated_at: %Schema{type: :string, format: :"date-time"}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user