Commit 58b8968d authored by David Foucher's avatar David Foucher

Update openapi doc and backoffice to handle error 400 instead of 422

parent bd36a108
Pipeline #3445 passed with stage
in 2 minutes and 3 seconds
......@@ -246,7 +246,7 @@
this.error_flags.noUser = false;
this.error_flags.noResume = false;
}
else if (error.status == 422) {
else if (error.status == 400) {
if (error.body.args == "`user` est vide") {
this.error_flags.noUser = true;
this.error_flags.badUser = false;
......@@ -320,7 +320,7 @@
this.error_flags.notModified = false;
this.error_flags.noResume = false;
}
else if (error.status == 422) {
else if (error.status == 400) {
if (error.body.args == "`author_email` est vide") {
this.error_flags.noUser = true;
this.error_flags.badUser = false;
......
......@@ -48,14 +48,8 @@ paths:
examples:
compute-success:
$ref: '#/components/examples/compute-financement-success'
422:
description: Les informations sont invalides
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
400:
description: Le format de la requête est invalide
description: Le format de la requête ou l'information est invalide
content:
application/json:
schema:
......@@ -83,14 +77,8 @@ paths:
examples:
compute-success:
$ref: '#/components/examples/compute-remuneration-success'
422:
description: Les informations sont invalides
content:
application/json:
schema:
$ref: '#/components/schemas/errors'
400:
description: Le format de la requête est invalide
description: Le format de la requête, ou l'information est invalide
content:
application/json:
schema:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment