mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
Erlang server (#20087)
* erlang-server: Extend provided return * Regenerate erlang-server handlers
This commit is contained in:
parent
85f711236c
commit
20b5059aa5
@ -136,7 +136,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ {{packageName}}_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
@ -8,6 +8,9 @@
|
||||
| {true, iodata()}
|
||||
| {created, iodata()}
|
||||
| {see_other, iodata()}.
|
||||
-type provide_callback_return() ::
|
||||
stop
|
||||
| cowboy_req:resp_body().
|
||||
-type api_key_callback() ::
|
||||
fun(({{packageName}}_api:operation_id(), binary()) -> {true, context()} | {false, iodata()}).
|
||||
-type accept_callback() ::
|
||||
|
@ -138,7 +138,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ openapi_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
@ -258,7 +258,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ openapi_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
@ -141,7 +141,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ openapi_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
@ -105,7 +105,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ openapi_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
@ -8,6 +8,9 @@
|
||||
| {true, iodata()}
|
||||
| {created, iodata()}
|
||||
| {see_other, iodata()}.
|
||||
-type provide_callback_return() ::
|
||||
stop
|
||||
| cowboy_req:resp_body().
|
||||
-type api_key_callback() ::
|
||||
fun((openapi_api:operation_id(), binary()) -> {true, context()} | {false, iodata()}).
|
||||
-type accept_callback() ::
|
||||
|
@ -105,7 +105,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ openapi_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
@ -240,7 +240,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ openapi_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
@ -8,6 +8,9 @@
|
||||
| {true, iodata()}
|
||||
| {created, iodata()}
|
||||
| {see_other, iodata()}.
|
||||
-type provide_callback_return() ::
|
||||
stop
|
||||
| cowboy_req:resp_body().
|
||||
-type api_key_callback() ::
|
||||
fun((openapi_api:operation_id(), binary()) -> {true, context()} | {false, iodata()}).
|
||||
-type accept_callback() ::
|
||||
|
@ -293,7 +293,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ openapi_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
@ -161,7 +161,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ openapi_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
@ -262,7 +262,7 @@ handle_type_accepted(Req, #state{operation_id = OperationID,
|
||||
{Res, Req1, State#state{context = Context1}}.
|
||||
|
||||
-spec handle_type_provided(cowboy_req:req(), state()) ->
|
||||
{cowboy_req:resp_body(), cowboy_req:req(), state()}.
|
||||
{ openapi_logic_handler:provide_callback_return(), cowboy_req:req(), state()}.
|
||||
handle_type_provided(Req, #state{operation_id = OperationID,
|
||||
provide_callback = Handler,
|
||||
context = Context} = State) ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user