Skip to content

infinite loop when using "format" as field name #263

@mikeni

Description

@mikeni

In dsl.ex, if you have :format as attribute

def default_attributes(serializer, struct, conn) do
serializer.__attributes
|> Enum.map(&({&1, apply(serializer, &1, [struct, conn])}))

you get

warning: Elixir.MyApp.V1.PhotoView.format/3 is deprecated.
Please use JaSerializer.format/4 instead, eg:
JaSerializer.format(Elixir.MyApp.V1.PhotoView, data, conn, opts)

and it seems to infinitely loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions