Skip to content

Commit a95ea1f

Browse files
authored
erlang-server: Extend provided return and make the type available (#20088)
1 parent 20b5059 commit a95ea1f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

modules/openapi-generator/src/main/resources/erlang-server/logic_handler.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
-type context() :: #{_ := _}.
2323

2424
-export_type([context/0, api_key_callback/0,
25-
accept_callback_return/0, accept_callback/0, provide_callback/0]).
25+
accept_callback_return/0, provide_callback_return/0,
26+
accept_callback/0, provide_callback/0]).
2627

2728
-optional_callbacks([api_key_callback/2]).
2829

samples/server/echo_api/erlang-server/src/openapi_logic_handler.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
-type context() :: #{_ := _}.
2323

2424
-export_type([context/0, api_key_callback/0,
25-
accept_callback_return/0, accept_callback/0, provide_callback/0]).
25+
accept_callback_return/0, provide_callback_return/0,
26+
accept_callback/0, provide_callback/0]).
2627

2728
-optional_callbacks([api_key_callback/2]).
2829

samples/server/petstore/erlang-server/src/openapi_logic_handler.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
-type context() :: #{_ := _}.
2323

2424
-export_type([context/0, api_key_callback/0,
25-
accept_callback_return/0, accept_callback/0, provide_callback/0]).
25+
accept_callback_return/0, provide_callback_return/0,
26+
accept_callback/0, provide_callback/0]).
2627

2728
-optional_callbacks([api_key_callback/2]).
2829

0 commit comments

Comments
 (0)