Make suggested change for create_response

This commit is contained in:
Sean King 2021-08-29 07:25:54 -06:00
parent 2e59cdd80f
commit 3117c60997
No known key found for this signature in database
GPG Key ID: 510C52BACD6E7257
1 changed files with 1 additions and 5 deletions

View File

@ -23,7 +23,7 @@ def create_operation do
operationId: "AppController.create",
requestBody: Helpers.request_body("Parameters", create_request(), required: true),
responses: %{
200 => create_response(),
200 => Operation.response("App", "application/json", App),
422 =>
Operation.response(
"Unprocessable Entity",
@ -120,8 +120,4 @@ defp create_request do
}
}
end
defp create_response do
Operation.response("App", "application/json", App)
end
end