Skip to content

Commit

Permalink
Example for JSON should be map
Browse files Browse the repository at this point in the history
  • Loading branch information
wmnnd committed Dec 18, 2024
1 parent 445ceda commit 5d0d56d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/keila_web/api/schemas/mailings_campaign.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ defmodule KeilaWeb.Api.Schemas.MailingsCampaign do
},
json_body: %{
type: :map,
example: """
{
"blocks": [{
"id":"ff0011",
"type":"paragraph",
"data": {"text": "Hello, I am a block campaign!"}
}]
example: %{
"blocks" => [
%{
"id" => "ff0011",
"type" => "paragraph",
"data" => %{"text" => "Hello, I am a block campaign!"}
}
]
}
"""
},
mjml_body: %{
type: :string,
Expand Down

0 comments on commit 5d0d56d

Please sign in to comment.