Skip to content

Commit

Permalink
Fix type and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Nov 27, 2024
1 parent 40293d5 commit d9f6422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/amoc_rest_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ prepare_validator(SchemaVer) ->
prepare_validator(get_openapi_path(), SchemaVer).

-doc """
Loads the JSON schema and the desired validation draft into a `t:jesse_state:state()`.
Loads the JSON schema and the desired validation draft into a `t:jesse_state:state/0`.
""".
-spec prepare_validator(file:name_all(), binary()) -> jesse_state:state().
prepare_validator(OpenApiPath, SchemaVer) ->
Expand Down
2 changes: 1 addition & 1 deletion src/amoc_rest_logic_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{accept_callback_return(), cowboy_req:req(), context()}.

-callback provide_callback(amoc_rest_api:class(), amoc_rest_api:operation_id(), cowboy_req:req(), context()) ->
{cowboy_req:resp_body(), cowboy_req:req(), context()}.
{provide_callback_return(), cowboy_req:req(), context()}.

-export([api_key_callback/2, accept_callback/4, provide_callback/4]).
-ignore_xref([api_key_callback/2, accept_callback/4, provide_callback/4]).
Expand Down

0 comments on commit d9f6422

Please sign in to comment.