Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#50729] fixed specs for errors responses

Eric Schubert642346a51c9d
diff --git a/docs/api/apiv3/components/responses/invalid_query.yml b/docs/api/apiv3/components/responses/invalid_query.yml
index 7823b34b863..567af05ae38 100644
--- a/docs/api/apiv3/components/responses/invalid_query.yml
+++ b/docs/api/apiv3/components/responses/invalid_query.yml
@@ -1,11 +1,11 @@
# Response: InvalidQuery
---
-description: Occurs when the client did not send a valid JSON object in the request body.
+description: Returned if the client sends invalid request parameters e.g. filters
content:
application/hal+json:
schema:
$ref: '../schemas/error_response.yml'
example:
_type: Error
- errorIdentifier: urn:openproject-org:api:v3:errors:InvalidRequestBody
- message: The request body was not a single JSON object.
+ errorIdentifier: urn:openproject-org:api:v3:errors:InvalidQuery
+ message: Filters Invalid filter does not exist.
diff --git a/docs/api/apiv3/components/responses/invalid_request_body.yml b/docs/api/apiv3/components/responses/invalid_request_body.yml
index ce80b3df51f..062863a1aba 100644
--- a/docs/api/apiv3/components/responses/invalid_request_body.yml
+++ b/docs/api/apiv3/components/responses/invalid_request_body.yml
@@ -1,11 +1,11 @@
# Response: InvalidRequestBody
---
-description: Returned if the client sends invalid request parameters e.g. filters
+description: Occurs when the client did not send a valid JSON object in the request body.
content:
application/hal+json:
schema:
$ref: '../schemas/error_response.yml'
example:
_type: Error
- errorIdentifier: urn:openproject-org:api:v3:errors:InvalidQuery
- message: Filters Invalid filter does not exist.
+ errorIdentifier: urn:openproject-org:api:v3:errors:InvalidRequestBody
+ message: The request body was not a single JSON object.