Skip to content

Commit

Permalink
incident_api: added missing Jason encoders
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelFangel committed Apr 26, 2024
1 parent b53a788 commit d1ac198
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/incident_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ defmodule LogpointApi.IncidentApi do
end

defmodule IncidentComment do
@derive {Jason.Encoder, only: [:_id, :comments]}
defstruct _id: "", comments: []
end

defmodule IncidentCommentData do
@derive {Jason.Encoder, only: [:version, :states]}
defstruct version: "0.1", states: [%IncidentComment{}]
end

Expand Down

0 comments on commit d1ac198

Please sign in to comment.