add type specs and fix id issues
Some checks failed
Build and Publish / build-release (push) Failing after 37s
Some checks failed
Build and Publish / build-release (push) Failing after 37s
This commit is contained in:
@@ -4,6 +4,12 @@ defmodule WorkloadService.Aggregates.ApplicationId do
|
||||
Used to track which policy-service application this task belongs to.
|
||||
"""
|
||||
|
||||
@type t :: %__MODULE__{
|
||||
org_id: String.t(),
|
||||
application_id: String.t(),
|
||||
policy_type: String.t()
|
||||
}
|
||||
|
||||
@derive Jason.Encoder
|
||||
defstruct [:org_id, :application_id, :policy_type]
|
||||
|
||||
@@ -49,4 +55,4 @@ defmodule WorkloadService.Aggregates.ApplicationId do
|
||||
|
||||
def decode(id), do: id
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user