Skip to content

ex_json_schema compile error #309

@maiphuong-van

Description

@maiphuong-van

I added crawly to my deps and get this error while compiling

==> ex_json_schema
Compiling 39 files (.ex)

== Compilation error in file lib/ex_json_schema/validator/format.ex ==
** (ArgumentError) cannot inject attribute @formats into function/macro because cannot escape #Reference<0.3458749000.2345271301.41352>. The supported values are: lists, tuples, maps, atoms, numbers, bitstrings, PIDs and remote functions in the format &Mod.fun/arity
    (elixir 1.18.4) lib/kernel.ex:3777: Kernel.do_at_escape/2
    (elixir 1.18.4) expanding macro: Kernel.@/1
    lib/ex_json_schema/validator/format.ex:86: ExJsonSchema.Validator.Format.do_validate/3
could not compile dependency :ex_json_schema, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ex_json_schema --force", update it with "mix deps.update ex_json_schema" or clean it with "mix deps.clean ex_json_schema"

Adding this line in mix deps solved the issue.

{:ex_json_schema, "~> 0.11.1", override: true}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions