add type specs and fix id issues
Some checks failed
Build and Publish / build-release (push) Failing after 37s

This commit is contained in:
2026-04-21 12:55:38 -05:00
parent f857a5f900
commit 2bf99bfb37
7 changed files with 78 additions and 42 deletions

View File

@@ -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