Skip to content

Commit

Permalink
fixes failing CI and adds 26.0 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ityonemo committed Oct 13, 2023
1 parent f66f95e commit e27d536
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

![example workflow](https://github.com/E-xyza/exonerate/actions/workflows/elixir.yml/badge.svg)

## Erlang 26.0 warning

There is a bug in the Erlang compiler that causes Exonerate to fail on OTP version 26.0. Please use
26.1 or an earlier version or OTP.

## Documentation

Documentation is available at: https://hexdocs.pm/exonerate
Expand Down
8 changes: 7 additions & 1 deletion test/errors/ref_not_found_test.exs
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
defmodule ExonerateTest.RefNotFoundTest do
use ExUnit.Case, async: true

@error_string if Version.compare(Version.parse!(System.version()), %Version{major: 1, minor: 15, patch: 0}) == :lt do
" reference points to: #/definitions/foo, this location not found in the schema"
else
"reference points to: #/definitions/foo, this location not found in the schema"
end

test "if there's a missing ref, we get a CompileError" do
assert_raise CompileError,
"reference points to: #/definitions/foo, this location not found in the schema",
@error_string,
fn ->
__DIR__
|> Path.join("ref_not_found_root.exs")
Expand Down

0 comments on commit e27d536

Please sign in to comment.