kipcole9 / money_sql

Money functions for the serialization of a money data type in Elixir
Other
28 stars 18 forks source link

Add Ecto Changeset validations #21

Closed kipcole9 closed 2 years ago

kipcole9 commented 2 years ago

@DaTrader, @lostkobrakai, In commit cd2547d I have added Money.Validation.validate_money/3 that mirrors the way Ecto.Changeset.validate_number/3 operates.

Comments and suggestions welcome. Here is the draft changelog entry:

Enhancements

kipcole9 commented 2 years ago

I will add validate_money_amount/3 and validate_money_currency/3 over the next few days.