This commit is contained in:
@@ -45,7 +45,7 @@ defmodule PolicyService.Commands.Policy do
|
||||
|
||||
typedstruct do
|
||||
field :id, PolicyService.Aggregates.PolicyId.t(), enforce: true
|
||||
field :accepted_by, String.t(), enforce: true
|
||||
field :accepted_by, String.t()
|
||||
field :accepted_plan_id, String.t(), enforce: true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -229,8 +229,10 @@ defmodule PolicyServiceWeb.Schemas.Policy do
|
||||
type: :object,
|
||||
required: [:accepted_plan_id],
|
||||
properties: %{
|
||||
quote_id: %Schema{type: :string},
|
||||
plan_id: %Schema{type: :string}
|
||||
accepted_plan_id: %Schema{
|
||||
type: :string,
|
||||
description: "Plan ID to accept"
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user