Skip to content

Commit

Permalink
[PLATFORM-1794]: Implement additional logical types (#48)
Browse files Browse the repository at this point in the history
* Re set is_binary guard in encode uuid function

* Fix + bump
  • Loading branch information
cottinisimone committed Sep 5, 2024
1 parent db9a069 commit 78e4ca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/avrogen/avro/types/logical/uuid.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defimpl CodeGenerator, for: Logical.UUID do

def encode_function(%Logical.UUID{}, function_name, _global) do
quote do
defp unquote(function_name)(uuid) do
defp unquote(function_name)(uuid) when is_binary(uuid) do
case UUID.info(uuid) do
{:ok, _} -> uuid
{:error, error} -> raise ArgumentError, message: inspect(error)
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Avrogen.MixProject do
use Mix.Project

@version "0.6.5"
@version "0.6.6"
@source_url "https://github.com/primait/avrogen"

def project do
Expand Down

0 comments on commit 78e4ca6

Please sign in to comment.