File tree 2 files changed +12
-8
lines changed 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 12
12
fail-fast : false
13
13
matrix :
14
14
include :
15
- - elixir : 1.17 .x
15
+ - elixir : 1.18 .x
16
16
otp : 27.x
17
17
lint : true
18
+ - elixir : 1.17.x
19
+ otp : 27.x
18
20
- elixir : 1.17.x
19
21
otp : 25.x
20
22
- elixir : 1.16.x
Original file line number Diff line number Diff line change @@ -13,13 +13,14 @@ defmodule Params.Def do
13
13
Code . eval_quoted ( block , [ ] , __ENV__ )
14
14
end
15
15
16
- Module . eval_quoted (
17
- __MODULE__ ,
16
+ Code . eval_quoted (
18
17
quote do
19
18
def unquote ( name ) ( params , options \\ [ ] ) do
20
19
unquote ( module_name ) . from ( params , options )
21
20
end
22
- end
21
+ end ,
22
+ [ ] ,
23
+ module: __MODULE__
23
24
)
24
25
end
25
26
end
@@ -33,13 +34,14 @@ defmodule Params.Def do
33
34
Params.Def . defschema ( schema )
34
35
end
35
36
36
- Module . eval_quoted (
37
- __MODULE__ ,
37
+ Code . eval_quoted (
38
38
quote do
39
39
def unquote ( name ) ( params ) do
40
40
unquote ( module_name ) . from ( params )
41
41
end
42
- end
42
+ end ,
43
+ [ ] ,
44
+ module: __MODULE__
43
45
)
44
46
end
45
47
end
@@ -48,7 +50,7 @@ defmodule Params.Def do
48
50
defmacro defschema ( schema ) do
49
51
quote bind_quoted: [ schema: schema ] do
50
52
normalized_schema = Params.Def . normalize_schema ( schema , __MODULE__ )
51
- Module . eval_quoted ( __MODULE__ , Params.Def . gen_root_schema ( normalized_schema ) )
53
+ Code . eval_quoted ( Params.Def . gen_root_schema ( normalized_schema ) , [ ] , module: __MODULE__ )
52
54
53
55
normalized_schema
54
56
|> Params.Def . build_nested_schemas ( )
You can’t perform that action at this time.
0 commit comments