update openapi

This commit is contained in:
Pascal Fischer
2023-06-02 01:09:18 +02:00
parent 1939973c2e
commit 75fbaf811b
3 changed files with 17 additions and 13 deletions

View File

@@ -65,7 +65,7 @@ func (h *AccountsHandler) UpdateAccount(w http.ResponseWriter, r *http.Request)
return
}
var req api.PutApiAccountsAccountIdJSONBody
var req api.PutApiAccountsAccountIdJSONRequestBody
err = json.NewDecoder(r.Body).Decode(&req)
if err != nil {
util.WriteErrorResponse("couldn't parse JSON request", http.StatusBadRequest, w)