compile:lint_module/2 -> {error,
{compile,[],".",[],[],".beam",[],[],
[binary],
[binary],
none,
[{[],
[{0,erl_lint,{unbound_var,'Headers'}},
{0,erl_lint,{unbound_var,'Headers'}},
{0,erl_lint,{unbound_var,'Extension'}},
{0,erl_lint,{unbound_var,'Headers'}},
{0,erl_lint,{unbound_var,'Headers'}},
{0,erl_lint,{unbound_var,'Headers'}},
{0,erl_lint,{unbound_var,'Headers'}},
{0,erl_lint,{unbound_var,...}},
{0,erl_lint,{...}}]}],
[{[],
[{0,erl_lint,{unused_var,'EventType'}},
{0,erl_lint,{unused_var,'EventType'}},
{0,erl_lint,{unused_var,'EventType'}},
{0,erl_lint,{unused_var,'EventType'}},
{0,erl_lint,{unused_var,'EventType'}},
{0,erl_lint,{unused_var,'Hash'}},
{0,erl_lint,{unused_var,...}},
{0,erl_lint,{...}},
{0,erl_lint,...},
{0,...},
{...}|...]}],
[]}}
Lots of errors, hard to fix.
So, it looks like there are some troubles with parameters in headers.
I tried to import this schema: https://github.com/Redocly/redoc/raw/refs/heads/main/demo/big-openapi.json
It failed with silent error.
After some tracing found the actual error:
Lots of errors, hard to fix.
I tried this schema instead: https://github.com/flussonic/openapi_handler/blob/master/test/flussonic-230127.json
After hacking openapi 3.1 support, I got the same
{unbound_var,'Headers'}, but just one.I removed one parameter and it worked:
So, it looks like there are some troubles with parameters in headers.