Skip to content

OTP 28 support #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mayel opened this issue May 22, 2025 · 3 comments
Closed

OTP 28 support #93

mayel opened this issue May 22, 2025 · 3 comments

Comments

@mayel
Copy link
Contributor

mayel commented May 22, 2025

Compiling on OTP 28 fails because regex are no longer allowed in module attributes:

== Compilation error in file lib/ex_json_schema/validator/format.ex ==
** (ArgumentError) cannot inject attribute @formats into function/macro because cannot escape #Reference<0.3862611929.2693398537.188290>. 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
    (ex_json_schema 0.11.0) lib/ex_json_schema/validator/format.ex:86: ExJsonSchema.Validator.Format.do_validate/3
mayel added a commit to mayel/ex_json_schema that referenced this issue May 22, 2025
@jonasschmidt
Copy link
Owner

Thank you for reporting that. I will include that version in the build matrix and take care of the fix today.

@jonasschmidt
Copy link
Owner

OTP 28 isn't supported on GH Actions yet, adding it to the build matrix will have to wait a bit.

jonasschmidt pushed a commit that referenced this issue May 22, 2025
@jonasschmidt
Copy link
Owner

Ok, I cherry-picked your commit and released the fixed version as 0.11.1. Thank you for pointing this out and helping with a fix 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants