diff --git a/lib/ash_money/types/money.ex b/lib/ash_money/types/money.ex index ea84114..eee3097 100644 --- a/lib/ash_money/types/money.ex +++ b/lib/ash_money/types/money.ex @@ -284,9 +284,13 @@ defmodule AshMoney.Types.Money do %{ type: "object", properties: %{ - amount: %{type: "number"}, + amount: %{type: "string", pattern: "^-?\\d+(\\.\\d+)?$"}, currency: %{type: "string"} }, + example: %{ + amount: "100.00", + currency: "USD" + }, required: ["amount", "currency"] } end