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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#40397] OpenAPI Specs not OpenAPI 3.0 compatible
Eric Schuberte19ecc27cf2b
diff --git a/docs/api/apiv3/README.md b/docs/api/apiv3/README.mdindex a4455e78e97..c2a5881c86f 100644--- a/docs/api/apiv3/README.md+++ b/docs/api/apiv3/README.md@@ -1,14 +1,14 @@# API Version 3-+_Status: under development_-+The documentation for APIv3 is written according to the [OpenAPI 3.0 Specification](https://swagger.io/specification/).--The file in the repository is split up into many files. Some OAS (OpenAPI Specification) do not support that.-You can retrieve the complete, singular file from any OpenProject server under `/api/v3/spec.json` or `/api/v3/spec.yml`.-Additionally, there is a rake task that outputs the specification as a whole as well, either as json or yaml depending-on the given output file name:++The file in the repository is split up into many files. Some OAS (OpenAPI Specification) do not support that. You can+retrieve the complete, singular file from any OpenProject server under `/api/v3/spec.json` or `/api/v3/spec.yml`.+Additionally, there is a script that outputs the specification as a whole as well, either as json or yaml depending on+the given format argument:```-bundle exec rake api:save_spec ./openproject-oas.yml+./script/api/spec --format yaml > openproject-oas.yml```diff --git a/docs/api/apiv3/components/schemas/error_response.yml b/docs/api/apiv3/components/schemas/error_response.ymlnew file mode 100644index 00000000000..b86446292ca--- /dev/null+++ b/docs/api/apiv3/components/schemas/error_response.yml@@ -0,0 +1,26 @@+# Schema: error response+---+type: object+required:+ - _type+ - errorIdentifier+ - message+properties:+ _embedded:+ type: object+ properties:+ details:+ type: object+ properties:+ attribute:+ type: string+ example: project+ _type:+ type: string+ enum: [ 'Error' ]+ errorIdentifier:+ type: string+ example: urn:openproject-org:api:v3:errors:PropertyConstraintViolation+ message:+ type: string+ example: Project can't be blank.diff --git a/docs/api/apiv3/components/schemas/link.yml b/docs/api/apiv3/components/schemas/link.ymlindex 46bba475274..46d0b5f470c 100644--- a/docs/api/apiv3/components/schemas/link.yml+++ b/docs/api/apiv3/components/schemas/link.yml@@ -25,10 +25,6 @@ properties:identifier:type: stringdescription: "\tAn optional unique identifier to the link object"-examples:-- href:-- href: "/api/v3/work_packages"+example:+ href: "/api/v3/work_packages"method: POST-- href: "/api/v3/examples/{example_id}"- templated: true-- href: urn:openproject-org:api:v3:undiscloseddiff --git a/docs/api/apiv3/components/schemas/user_preference_model.yml b/docs/api/apiv3/components/schemas/user_preference_model.ymlindex 50e71fa43fc..704c0799fa8 100644--- a/docs/api/apiv3/components/schemas/user_preference_model.yml+++ b/docs/api/apiv3/components/schemas/user_preference_model.yml@@ -9,7 +9,7 @@ properties:type: booleandescription: Hide mail address from other usersnotifications:- type: NotificationSetting+ type: objectdescription: The settings for the notifications to be received by the usertimeZone:type: stringdiff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex 09c9b5b1b8f..60dab8e9fc4 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -133,7 +133,7 @@ info:are supported. The client signals the desired compression by setting the [`Accept-Encoding` header](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3).If no `Accept-Encoding` header is send, `Accept-Encoding: identity` is assumed which will result in the API responding uncompressed.title: OpenProject API V3 (Stable)- version: ''+ version: '3'servers: []paths:"/api/v3":@@ -362,8 +362,6 @@ paths:"$ref": "./paths/views.yml""/api/v3/views/{id}":"$ref": "./paths/view.yml"- "/api/v3/views/{identifier}":- "$ref": "./paths/views_{identifier}.yml""/api/v3/wiki_pages/{id}":"$ref": "./paths/wiki_page.yml""/api/v3/wiki_pages/{id}/attachments":@@ -505,6 +503,8 @@ components:"$ref": "./components/schemas/document_model.yml"DocumentsModel:"$ref": "./components/schemas/documents_model.yml"+ ErrorResponse:+ "$ref": "./components/schemas/error_response.yml"Example_FormModel:"$ref": "./components/schemas/example_form_model.yml"Example_SchemaModel:diff --git a/docs/api/apiv3/paths/action.yml b/docs/api/apiv3/paths/action.ymlindex 127a4a336ce..3112bf8b6d7 100644--- a/docs/api/apiv3/paths/action.yml+++ b/docs/api/apiv3/paths/action.yml@@ -35,6 +35,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/activity.yml b/docs/api/apiv3/paths/activity.ymlindex ca82de54b6e..13a5c122170 100644--- a/docs/api/apiv3/paths/activity.yml+++ b/docs/api/apiv3/paths/activity.yml@@ -94,6 +94,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -106,6 +108,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -120,6 +124,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/attachment.yml b/docs/api/apiv3/paths/attachment.ymlindex 6617d8c5707..cc802787316 100644--- a/docs/api/apiv3/paths/attachment.yml+++ b/docs/api/apiv3/paths/attachment.yml@@ -20,6 +20,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -36,6 +38,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -103,6 +107,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/attachments.yml b/docs/api/apiv3/paths/attachments.ymlindex 091ad695b20..5ae72d3ef67 100644--- a/docs/api/apiv3/paths/attachments.yml+++ b/docs/api/apiv3/paths/attachments.yml@@ -39,6 +39,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -55,6 +57,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -69,6 +73,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/budget.yml b/docs/api/apiv3/paths/budget.ymlindex fa23d63a108..afe53512960 100644--- a/docs/api/apiv3/paths/budget.yml+++ b/docs/api/apiv3/paths/budget.yml@@ -30,6 +30,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/capabilities_context_global.yml b/docs/api/apiv3/paths/capabilities_context_global.ymlindex 7b72131b1f1..a6a0926f999 100644--- a/docs/api/apiv3/paths/capabilities_context_global.yml+++ b/docs/api/apiv3/paths/capabilities_context_global.yml@@ -20,6 +20,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/capability.yml b/docs/api/apiv3/paths/capability.ymlindex f76b3785fcd..d255b727128 100644--- a/docs/api/apiv3/paths/capability.yml+++ b/docs/api/apiv3/paths/capability.yml@@ -37,6 +37,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/category.yml b/docs/api/apiv3/paths/category.ymlindex c8007e6ae60..a3e5453dc6a 100644--- a/docs/api/apiv3/paths/category.yml+++ b/docs/api/apiv3/paths/category.yml@@ -36,6 +36,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/custom_action.yml b/docs/api/apiv3/paths/custom_action.ymlindex 7c51c2de13a..67a54aec82a 100644--- a/docs/api/apiv3/paths/custom_action.yml+++ b/docs/api/apiv3/paths/custom_action.yml@@ -34,6 +34,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -48,6 +50,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/custom_action_execute.yml b/docs/api/apiv3/paths/custom_action_execute.ymlindex ec87f527a64..6ec1464ec93 100644--- a/docs/api/apiv3/paths/custom_action_execute.yml+++ b/docs/api/apiv3/paths/custom_action_execute.yml@@ -16,6 +16,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -28,6 +30,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -42,6 +46,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -53,6 +59,8 @@ post:'409':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -65,6 +73,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/custom_object.yml b/docs/api/apiv3/paths/custom_object.ymlindex 8d989ecd53d..7f96d475f9e 100644--- a/docs/api/apiv3/paths/custom_object.yml+++ b/docs/api/apiv3/paths/custom_object.yml@@ -28,6 +28,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/document.yml b/docs/api/apiv3/paths/document.ymlindex c3231cc16d7..89f961c5e37 100644--- a/docs/api/apiv3/paths/document.yml+++ b/docs/api/apiv3/paths/document.yml@@ -65,6 +65,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/documents.yml b/docs/api/apiv3/paths/documents.ymlindex 6e888a68282..aeac12380c2 100644--- a/docs/api/apiv3/paths/documents.yml+++ b/docs/api/apiv3/paths/documents.yml@@ -120,6 +120,8 @@ get:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -132,6 +134,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/example_form.yml b/docs/api/apiv3/paths/example_form.ymlindex 6a822c4fe2e..1abfc2c943e 100644--- a/docs/api/apiv3/paths/example_form.yml+++ b/docs/api/apiv3/paths/example_form.yml@@ -89,6 +89,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -106,6 +108,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -118,6 +122,8 @@ post:'409':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/grid.yml b/docs/api/apiv3/paths/grid.ymlindex 2b3fe7d9555..5deb5d0990c 100644--- a/docs/api/apiv3/paths/grid.yml+++ b/docs/api/apiv3/paths/grid.yml@@ -60,6 +60,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/grid_form.yml b/docs/api/apiv3/paths/grid_form.ymlindex 39305803a55..ef6111a610a 100644--- a/docs/api/apiv3/paths/grid_form.yml+++ b/docs/api/apiv3/paths/grid_form.yml@@ -13,6 +13,8 @@ post:'200':content:application/hal+json:+ schema:+ type: objectexamples:response:value:@@ -118,6 +120,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -134,6 +138,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/grids.yml b/docs/api/apiv3/paths/grids.ymlindex be28a3ce1c7..e293d26eafe 100644--- a/docs/api/apiv3/paths/grids.yml+++ b/docs/api/apiv3/paths/grids.yml@@ -79,6 +79,8 @@ get:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -91,6 +93,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -118,6 +122,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -130,6 +136,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -167,6 +175,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -179,6 +189,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/group.yml b/docs/api/apiv3/paths/group.ymlindex 85b2920ac32..d5343166346 100644--- a/docs/api/apiv3/paths/group.yml+++ b/docs/api/apiv3/paths/group.yml@@ -20,6 +20,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -34,6 +36,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -100,6 +104,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -163,6 +169,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -175,6 +183,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -189,6 +199,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -208,6 +220,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -245,7 +259,7 @@ patch:_links:properties:members:- type: arrray+ type: arrayitems:type: objectproperties:diff --git a/docs/api/apiv3/paths/groups.yml b/docs/api/apiv3/paths/groups.ymlindex 60ff92d3d0f..ed1b87290ca 100644--- a/docs/api/apiv3/paths/groups.yml+++ b/docs/api/apiv3/paths/groups.yml@@ -74,6 +74,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -105,6 +107,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -117,6 +121,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -131,6 +137,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -163,7 +171,7 @@ post:_links:properties:members:- type: arrray+ type: arrayitems:type: objectproperties:diff --git a/docs/api/apiv3/paths/membership.yml b/docs/api/apiv3/paths/membership.ymlindex e0dd44e917c..81ca2a0f8c5 100644--- a/docs/api/apiv3/paths/membership.yml+++ b/docs/api/apiv3/paths/membership.yml@@ -16,6 +16,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -30,6 +32,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -104,6 +108,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -144,6 +150,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -156,6 +164,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -170,6 +180,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -188,6 +200,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/membership_form.yml b/docs/api/apiv3/paths/membership_form.ymlindex bda219b8568..97e97ddad5f 100644--- a/docs/api/apiv3/paths/membership_form.yml+++ b/docs/api/apiv3/paths/membership_form.yml@@ -96,6 +96,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -108,6 +110,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/memberships.yml b/docs/api/apiv3/paths/memberships.ymlindex 7fc7e390bb5..3735323714a 100644--- a/docs/api/apiv3/paths/memberships.yml+++ b/docs/api/apiv3/paths/memberships.yml@@ -129,6 +129,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -141,6 +143,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -155,6 +159,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/memberships_available_projects.yml b/docs/api/apiv3/paths/memberships_available_projects.ymlindex a33552d0063..5eea9e42d3d 100644--- a/docs/api/apiv3/paths/memberships_available_projects.yml+++ b/docs/api/apiv3/paths/memberships_available_projects.yml@@ -75,6 +75,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/memberships_form.yml b/docs/api/apiv3/paths/memberships_form.ymlindex 4fed3d099a5..c6dcfbaa874 100644--- a/docs/api/apiv3/paths/memberships_form.yml+++ b/docs/api/apiv3/paths/memberships_form.yml@@ -8,6 +8,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -20,6 +22,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/memberships_schema.yml b/docs/api/apiv3/paths/memberships_schema.ymlindex e6c1aa379bc..1938956c65a 100644--- a/docs/api/apiv3/paths/memberships_schema.yml+++ b/docs/api/apiv3/paths/memberships_schema.yml@@ -70,6 +70,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/my_preferences.yml b/docs/api/apiv3/paths/my_preferences.ymlindex d5c0fb219bd..1c9f032aa7c 100644--- a/docs/api/apiv3/paths/my_preferences.yml+++ b/docs/api/apiv3/paths/my_preferences.yml@@ -48,6 +48,8 @@ get:'401':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -109,6 +111,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -121,6 +125,8 @@ patch:'401':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -132,6 +138,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/news.yml b/docs/api/apiv3/paths/news.ymlindex eac8acc6080..f14cf9368a4 100644--- a/docs/api/apiv3/paths/news.yml+++ b/docs/api/apiv3/paths/news.yml@@ -130,6 +130,8 @@ get:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -142,6 +144,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/news_item.yml b/docs/api/apiv3/paths/news_item.ymlindex 638cf8a5332..0ef9fcca3c1 100644--- a/docs/api/apiv3/paths/news_item.yml+++ b/docs/api/apiv3/paths/news_item.yml@@ -58,6 +58,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/notification.yml b/docs/api/apiv3/paths/notification.ymlindex ac51410882a..1587aa9a1d1 100644--- a/docs/api/apiv3/paths/notification.yml+++ b/docs/api/apiv3/paths/notification.yml@@ -20,6 +20,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/notifications.yml b/docs/api/apiv3/paths/notifications.ymlindex 5ae2249e93d..47a434e9280 100644--- a/docs/api/apiv3/paths/notifications.yml+++ b/docs/api/apiv3/paths/notifications.yml@@ -76,6 +76,8 @@ get:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -88,6 +90,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/post.yml b/docs/api/apiv3/paths/post.ymlindex 5cebfd5d1ff..f60a7425ad6 100644--- a/docs/api/apiv3/paths/post.yml+++ b/docs/api/apiv3/paths/post.yml@@ -40,6 +40,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/post_attachments.yml b/docs/api/apiv3/paths/post_attachments.ymlindex e4c04b41b7e..3ac949dab16 100644--- a/docs/api/apiv3/paths/post_attachments.yml+++ b/docs/api/apiv3/paths/post_attachments.yml@@ -59,6 +59,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -173,6 +175,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -189,6 +193,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -205,6 +211,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -223,6 +231,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/priorities.yml b/docs/api/apiv3/paths/priorities.ymlindex ebce1645d07..66b21181527 100644--- a/docs/api/apiv3/paths/priorities.yml+++ b/docs/api/apiv3/paths/priorities.yml@@ -63,6 +63,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/priority.yml b/docs/api/apiv3/paths/priority.ymlindex b54b92b2aca..5baa4740a62 100644--- a/docs/api/apiv3/paths/priority.yml+++ b/docs/api/apiv3/paths/priority.yml@@ -33,6 +33,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project.yml b/docs/api/apiv3/paths/project.ymlindex e85112b6942..eccd2fd0fc3 100644--- a/docs/api/apiv3/paths/project.yml+++ b/docs/api/apiv3/paths/project.yml@@ -18,6 +18,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -32,6 +34,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -50,6 +54,8 @@ delete:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -95,6 +101,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -146,6 +154,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -158,6 +168,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -172,6 +184,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -190,6 +204,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_available_assignees.yml b/docs/api/apiv3/paths/project_available_assignees.ymlindex 2adc59b71fc..f6c1ac0b65b 100644--- a/docs/api/apiv3/paths/project_available_assignees.yml+++ b/docs/api/apiv3/paths/project_available_assignees.yml@@ -75,6 +75,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -92,6 +94,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_available_responsibles.yml b/docs/api/apiv3/paths/project_available_responsibles.ymlindex bb8fd84e67a..7e66d30d337 100644--- a/docs/api/apiv3/paths/project_available_responsibles.yml+++ b/docs/api/apiv3/paths/project_available_responsibles.yml@@ -75,6 +75,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -92,6 +94,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_budgets.yml b/docs/api/apiv3/paths/project_budgets.ymlindex 299bedab3e4..0d610fc0d27 100644--- a/docs/api/apiv3/paths/project_budgets.yml+++ b/docs/api/apiv3/paths/project_budgets.yml@@ -45,6 +45,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -62,6 +64,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_categories.yml b/docs/api/apiv3/paths/project_categories.ymlindex c1e9df5473c..4dba2dc1ffe 100644--- a/docs/api/apiv3/paths/project_categories.yml+++ b/docs/api/apiv3/paths/project_categories.yml@@ -52,6 +52,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_copy.yml b/docs/api/apiv3/paths/project_copy.ymlindex a57096f95a2..a3c53dd9146 100644--- a/docs/api/apiv3/paths/project_copy.yml+++ b/docs/api/apiv3/paths/project_copy.yml@@ -18,6 +18,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -30,6 +32,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -44,6 +48,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_copy_form.yml b/docs/api/apiv3/paths/project_copy_form.ymlindex cf2faca4094..316194b00c9 100644--- a/docs/api/apiv3/paths/project_copy_form.yml+++ b/docs/api/apiv3/paths/project_copy_form.yml@@ -16,6 +16,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -28,6 +30,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_form.yml b/docs/api/apiv3/paths/project_form.ymlindex 54310110e7a..ecf0063b84a 100644--- a/docs/api/apiv3/paths/project_form.yml+++ b/docs/api/apiv3/paths/project_form.yml@@ -27,6 +27,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -39,6 +41,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_queries_default.yml b/docs/api/apiv3/paths/project_queries_default.ymlindex a665415fd0f..ab995c5e93c 100644--- a/docs/api/apiv3/paths/project_queries_default.yml+++ b/docs/api/apiv3/paths/project_queries_default.yml@@ -174,6 +174,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -188,6 +190,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_queries_filter_instance_schemas.yml b/docs/api/apiv3/paths/project_queries_filter_instance_schemas.ymlindex da899830be2..9e8c8068eed 100644--- a/docs/api/apiv3/paths/project_queries_filter_instance_schemas.yml+++ b/docs/api/apiv3/paths/project_queries_filter_instance_schemas.yml@@ -113,6 +113,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_queries_schema.yml b/docs/api/apiv3/paths/project_queries_schema.ymlindex d2129dd4864..2ed60843b53 100644--- a/docs/api/apiv3/paths/project_queries_schema.yml+++ b/docs/api/apiv3/paths/project_queries_schema.yml@@ -23,6 +23,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_status.yml b/docs/api/apiv3/paths/project_status.ymlindex 8249c998f90..18690c44957 100644--- a/docs/api/apiv3/paths/project_status.yml+++ b/docs/api/apiv3/paths/project_status.yml@@ -29,6 +29,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_types.yml b/docs/api/apiv3/paths/project_types.ymlindex 52896b6e12b..bb8afa0e6db 100644--- a/docs/api/apiv3/paths/project_types.yml+++ b/docs/api/apiv3/paths/project_types.yml@@ -55,6 +55,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_versions.yml b/docs/api/apiv3/paths/project_versions.ymlindex d2588b1bd97..69ebbe6e94a 100644--- a/docs/api/apiv3/paths/project_versions.yml+++ b/docs/api/apiv3/paths/project_versions.yml@@ -82,6 +82,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/project_work_packages.yml b/docs/api/apiv3/paths/project_work_packages.ymlindex ab4f9c7ad25..c50067e8fdf 100644--- a/docs/api/apiv3/paths/project_work_packages.yml+++ b/docs/api/apiv3/paths/project_work_packages.yml@@ -94,6 +94,8 @@ get:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -107,6 +109,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -123,6 +127,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -310,6 +316,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -322,6 +330,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -338,6 +348,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -356,6 +368,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/projects.yml b/docs/api/apiv3/paths/projects.ymlindex 3455bda1cb9..ec90852f35f 100644--- a/docs/api/apiv3/paths/projects.yml+++ b/docs/api/apiv3/paths/projects.yml@@ -179,6 +179,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -191,6 +193,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -205,6 +209,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/projects_available_parent_projects.yml b/docs/api/apiv3/paths/projects_available_parent_projects.ymlindex 89cc4bc62b0..c606d393586 100644--- a/docs/api/apiv3/paths/projects_available_parent_projects.yml+++ b/docs/api/apiv3/paths/projects_available_parent_projects.yml@@ -116,6 +116,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/projects_form.yml b/docs/api/apiv3/paths/projects_form.ymlindex ebecb3b3acf..6b8d9eba0ce 100644--- a/docs/api/apiv3/paths/projects_form.yml+++ b/docs/api/apiv3/paths/projects_form.yml@@ -16,6 +16,8 @@ post:'200':content:application/hal+json:+ schema:+ type: objectexamples:response:value:@@ -245,6 +247,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -257,6 +261,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries.yml b/docs/api/apiv3/paths/queries.ymlindex 9defe4922f6..a8a7f958ccb 100644--- a/docs/api/apiv3/paths/queries.yml+++ b/docs/api/apiv3/paths/queries.yml@@ -31,6 +31,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -65,6 +67,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -77,6 +81,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries_available_projects.yml b/docs/api/apiv3/paths/queries_available_projects.ymlindex e20f98cb490..be21b4be516 100644--- a/docs/api/apiv3/paths/queries_available_projects.yml+++ b/docs/api/apiv3/paths/queries_available_projects.yml@@ -67,6 +67,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries_column.yml b/docs/api/apiv3/paths/queries_column.ymlindex 3c79e630565..b671ed40377 100644--- a/docs/api/apiv3/paths/queries_column.yml+++ b/docs/api/apiv3/paths/queries_column.yml@@ -30,6 +30,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -44,6 +46,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries_default.yml b/docs/api/apiv3/paths/queries_default.ymlindex ac430fefb74..7f21c45e4c7 100644--- a/docs/api/apiv3/paths/queries_default.yml+++ b/docs/api/apiv3/paths/queries_default.yml@@ -178,6 +178,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries_filter.yml b/docs/api/apiv3/paths/queries_filter.ymlindex 1c9be16e6e8..1b05cbfefe6 100644--- a/docs/api/apiv3/paths/queries_filter.yml+++ b/docs/api/apiv3/paths/queries_filter.yml@@ -29,6 +29,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -43,6 +45,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries_filter_instance_schemas.yml b/docs/api/apiv3/paths/queries_filter_instance_schemas.ymlindex 93c06cc010f..b1d0d4fc886 100644--- a/docs/api/apiv3/paths/queries_filter_instance_schemas.yml+++ b/docs/api/apiv3/paths/queries_filter_instance_schemas.yml@@ -105,6 +105,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries_filter_instance_schemas_{id}.yml b/docs/api/apiv3/paths/queries_filter_instance_schemas_{id}.ymlindex fb92ab60395..4d218c50f4b 100644--- a/docs/api/apiv3/paths/queries_filter_instance_schemas_{id}.yml+++ b/docs/api/apiv3/paths/queries_filter_instance_schemas_{id}.yml@@ -64,6 +64,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -78,6 +80,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries_operator.yml b/docs/api/apiv3/paths/queries_operator.ymlindex 48a4e3f6f78..e3881853f50 100644--- a/docs/api/apiv3/paths/queries_operator.yml+++ b/docs/api/apiv3/paths/queries_operator.yml@@ -30,6 +30,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -44,6 +46,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries_schema.yml b/docs/api/apiv3/paths/queries_schema.ymlindex f67e0965431..f16335a1e59 100644--- a/docs/api/apiv3/paths/queries_schema.yml+++ b/docs/api/apiv3/paths/queries_schema.yml@@ -15,6 +15,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/queries_sort_by.yml b/docs/api/apiv3/paths/queries_sort_by.ymlindex 53e28a032dd..f586ac950c5 100644--- a/docs/api/apiv3/paths/queries_sort_by.yml+++ b/docs/api/apiv3/paths/queries_sort_by.yml@@ -37,6 +37,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -51,6 +53,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/query.yml b/docs/api/apiv3/paths/query.ymlindex 8b14a8dbdf9..479eeea5778 100644--- a/docs/api/apiv3/paths/query.yml+++ b/docs/api/apiv3/paths/query.yml@@ -16,6 +16,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -32,6 +34,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -179,6 +183,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -316,6 +322,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -328,6 +336,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -342,6 +352,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -356,6 +368,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/query_star.yml b/docs/api/apiv3/paths/query_star.ymlindex 9f1d2b20053..24d75ff593b 100644--- a/docs/api/apiv3/paths/query_star.yml+++ b/docs/api/apiv3/paths/query_star.yml@@ -115,6 +115,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -126,6 +128,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -142,6 +146,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/query_unstar.yml b/docs/api/apiv3/paths/query_unstar.ymlindex c08b6762b74..0d7e417c2fe 100644--- a/docs/api/apiv3/paths/query_unstar.yml+++ b/docs/api/apiv3/paths/query_unstar.yml@@ -115,6 +115,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -126,6 +128,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -142,6 +146,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/relation.yml b/docs/api/apiv3/paths/relation.ymlindex 894cf7acd59..b00812afa12 100644--- a/docs/api/apiv3/paths/relation.yml+++ b/docs/api/apiv3/paths/relation.yml@@ -18,6 +18,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -32,6 +34,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -96,6 +100,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -160,6 +166,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -172,6 +180,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -186,6 +196,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/relation_form.yml b/docs/api/apiv3/paths/relation_form.ymlindex 2b7304497c9..185fd0f88ce 100644--- a/docs/api/apiv3/paths/relation_form.yml+++ b/docs/api/apiv3/paths/relation_form.yml@@ -96,6 +96,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -112,6 +114,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/relations_schema_{type}.yml b/docs/api/apiv3/paths/relations_schema_{type}.ymlindex dc82c125c75..0ddafe2e5f4 100644--- a/docs/api/apiv3/paths/relations_schema_{type}.yml+++ b/docs/api/apiv3/paths/relations_schema_{type}.yml@@ -55,6 +55,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/render_markdown.yml b/docs/api/apiv3/paths/render_markdown.ymlindex b4abcfa3edd..d44eb375367 100644--- a/docs/api/apiv3/paths/render_markdown.yml+++ b/docs/api/apiv3/paths/render_markdown.yml@@ -31,7 +31,9 @@ post:headers: {}'400':content:- application/json:+ application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -46,7 +48,9 @@ post:headers: {}'415':content:- application/json:+ application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/render_plain.yml b/docs/api/apiv3/paths/render_plain.ymlindex cf5675a85e7..da7cf160194 100644--- a/docs/api/apiv3/paths/render_plain.yml+++ b/docs/api/apiv3/paths/render_plain.yml@@ -14,7 +14,9 @@ post:headers: {}'415':content:- application/json:+ application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/revision.yml b/docs/api/apiv3/paths/revision.ymlindex 3f0d7acfd3f..a7cb2fca987 100644--- a/docs/api/apiv3/paths/revision.yml+++ b/docs/api/apiv3/paths/revision.yml@@ -46,6 +46,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/role.yml b/docs/api/apiv3/paths/role.ymlindex 83b5ea9ed31..f1ab114b916 100644--- a/docs/api/apiv3/paths/role.yml+++ b/docs/api/apiv3/paths/role.yml@@ -30,6 +30,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -44,6 +46,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/status.yml b/docs/api/apiv3/paths/status.ymlindex 507e51019fb..b20d4d852b3 100644--- a/docs/api/apiv3/paths/status.yml+++ b/docs/api/apiv3/paths/status.yml@@ -33,6 +33,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/statuses.yml b/docs/api/apiv3/paths/statuses.ymlindex 3345869a2cb..ad877a6b1f8 100644--- a/docs/api/apiv3/paths/statuses.yml+++ b/docs/api/apiv3/paths/statuses.yml@@ -84,6 +84,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/time_entries.yml b/docs/api/apiv3/paths/time_entries.ymlindex 592a314668e..53ff5383f95 100644--- a/docs/api/apiv3/paths/time_entries.yml+++ b/docs/api/apiv3/paths/time_entries.yml@@ -155,6 +155,8 @@ get:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -167,6 +169,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -193,6 +197,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -205,6 +211,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -219,6 +227,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/time_entries_activity_item.yml b/docs/api/apiv3/paths/time_entries_activity_item.ymlindex b45593fcf3d..55793b38b73 100644--- a/docs/api/apiv3/paths/time_entries_activity_item.yml+++ b/docs/api/apiv3/paths/time_entries_activity_item.yml@@ -39,6 +39,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/time_entries_available_projects.yml b/docs/api/apiv3/paths/time_entries_available_projects.ymlindex b7bfd47e0f5..676f1987e27 100644--- a/docs/api/apiv3/paths/time_entries_available_projects.yml+++ b/docs/api/apiv3/paths/time_entries_available_projects.yml@@ -25,6 +25,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/time_entries_form.yml b/docs/api/apiv3/paths/time_entries_form.ymlindex de89f4c14ea..765d60d3c43 100644--- a/docs/api/apiv3/paths/time_entries_form.yml+++ b/docs/api/apiv3/paths/time_entries_form.yml@@ -8,6 +8,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -20,6 +22,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/time_entries_id_form.yml b/docs/api/apiv3/paths/time_entries_id_form.ymlindex d64ffd523ad..c6795663fe5 100644--- a/docs/api/apiv3/paths/time_entries_id_form.yml+++ b/docs/api/apiv3/paths/time_entries_id_form.yml@@ -16,6 +16,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -28,6 +30,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -42,6 +46,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/time_entries_schema.yml b/docs/api/apiv3/paths/time_entries_schema.ymlindex b999f4bfd25..cbbe12ee0f7 100644--- a/docs/api/apiv3/paths/time_entries_schema.yml+++ b/docs/api/apiv3/paths/time_entries_schema.yml@@ -94,6 +94,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/time_entry.yml b/docs/api/apiv3/paths/time_entry.ymlindex 6b294c863d3..4b76a1239a2 100644--- a/docs/api/apiv3/paths/time_entry.yml+++ b/docs/api/apiv3/paths/time_entry.yml@@ -16,6 +16,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -27,6 +29,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -106,6 +110,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -142,6 +148,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -154,6 +162,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -168,6 +178,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/type.yml b/docs/api/apiv3/paths/type.ymlindex 01f07b102a0..ae72bfbce39 100644--- a/docs/api/apiv3/paths/type.yml+++ b/docs/api/apiv3/paths/type.yml@@ -35,6 +35,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/types.yml b/docs/api/apiv3/paths/types.ymlindex 377c72ec048..a2151dc3637 100644--- a/docs/api/apiv3/paths/types.yml+++ b/docs/api/apiv3/paths/types.yml@@ -47,6 +47,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/user.yml b/docs/api/apiv3/paths/user.ymlindex a5440783c2c..fe43efe822e 100644--- a/docs/api/apiv3/paths/user.yml+++ b/docs/api/apiv3/paths/user.yml@@ -20,6 +20,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -34,6 +36,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -98,6 +102,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -135,6 +141,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -147,6 +155,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -161,6 +171,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -176,6 +188,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/user_form.yml b/docs/api/apiv3/paths/user_form.ymlindex 0f8169e52bc..e19176c0891 100644--- a/docs/api/apiv3/paths/user_form.yml+++ b/docs/api/apiv3/paths/user_form.yml@@ -16,6 +16,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -28,6 +30,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -42,6 +46,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/user_lock.yml b/docs/api/apiv3/paths/user_lock.ymlindex 9098e1a7fe1..4dcb5692ecb 100644--- a/docs/api/apiv3/paths/user_lock.yml+++ b/docs/api/apiv3/paths/user_lock.yml@@ -51,6 +51,8 @@ delete:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -65,6 +67,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -79,6 +83,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -143,6 +149,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -157,6 +165,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -171,6 +181,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/users.yml b/docs/api/apiv3/paths/users.ymlindex 49832dbdc05..37d2b890762 100644--- a/docs/api/apiv3/paths/users.yml+++ b/docs/api/apiv3/paths/users.yml@@ -98,6 +98,8 @@ get:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -109,6 +111,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -138,6 +142,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -150,6 +156,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -164,6 +172,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/version.yml b/docs/api/apiv3/paths/version.ymlindex a1fb90a256c..b1a5d1030eb 100644--- a/docs/api/apiv3/paths/version.yml+++ b/docs/api/apiv3/paths/version.yml@@ -16,6 +16,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -30,6 +32,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -102,6 +106,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -142,6 +148,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -154,6 +162,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -168,6 +178,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/version_form.yml b/docs/api/apiv3/paths/version_form.ymlindex 5fa4197012a..f00b5bc112e 100644--- a/docs/api/apiv3/paths/version_form.yml+++ b/docs/api/apiv3/paths/version_form.yml@@ -16,6 +16,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -28,6 +30,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/versions.yml b/docs/api/apiv3/paths/versions.ymlindex 07e5b477955..dcea7d115e4 100644--- a/docs/api/apiv3/paths/versions.yml+++ b/docs/api/apiv3/paths/versions.yml@@ -104,6 +104,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -116,6 +118,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/versions_available_projects.yml b/docs/api/apiv3/paths/versions_available_projects.ymlindex ea8782bd81e..1d000903536 100644--- a/docs/api/apiv3/paths/versions_available_projects.yml+++ b/docs/api/apiv3/paths/versions_available_projects.yml@@ -75,6 +75,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/versions_form.yml b/docs/api/apiv3/paths/versions_form.ymlindex 3413dd71ac2..ad151b8ef03 100644--- a/docs/api/apiv3/paths/versions_form.yml+++ b/docs/api/apiv3/paths/versions_form.yml@@ -8,6 +8,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -20,6 +22,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/versions_schema.yml b/docs/api/apiv3/paths/versions_schema.ymlindex 46072fda6d9..eec1ba55845 100644--- a/docs/api/apiv3/paths/versions_schema.yml+++ b/docs/api/apiv3/paths/versions_schema.yml@@ -103,6 +103,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/view.yml b/docs/api/apiv3/paths/view.ymlindex e645e20fcac..9927a6ae7ec 100644--- a/docs/api/apiv3/paths/view.yml+++ b/docs/api/apiv3/paths/view.yml@@ -3,7 +3,7 @@get:parameters:- description: View id- example: '1'+ example: 42in: pathname: idrequired: true@@ -18,9 +18,12 @@ get:"$ref": "../components/examples/view_work_packages_table.yml"ViewTeamPlanner:"$ref": "../components/examples/view_team_planner.yml"+ description: Returns the result of a single view, dependent of the view type.'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -29,10 +32,12 @@ get:message: The request body was not a single JSON object.description: Occurs when the client did not send a valid JSON object in therequest body.- headers: {}+ headers: { }'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -43,10 +48,12 @@ get:Returned if the client does not have sufficient permissions.**Required permission:** The required permission depends on the type of the view.- headers: {}+ headers: { }'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -58,9 +65,117 @@ get:*Note: A client without sufficient permissions shall not be able to test for the existence ofa view. That's why a 404 is returned here, even if a 403 might be more appropriate.*- headers: {}+ headers: { }tags:- Viewsdescription: ''operationId: View_view- summary: View view\ No newline at end of file+ summary: View view++post:+ parameters:+ - description: The view identifier+ name: id+ in: path+ required: true+ example: '1'+ schema:+ type: string+ requestBody:+ content:+ application/json:+ examples:+ 'Views::WorkPackagesTable':+ value:+ _links:+ query:+ href: /api/v3/queries/5+ 'Views::TeamPlanner':+ value:+ _links:+ query:+ href: /api/v3/queries/5+ schema:+ type: object+ properties:+ _links:+ type: object+ properties:+ query:+ type: object+ properties:+ href:+ type: string+ format: uri+ responses:+ '201':+ content:+ application/hal+json:+ schema:+ type: object+ examples:+ 'Views::WorkPackagesTable':+ "$ref": "../components/examples/view_work_packages_table.yml"+ 'Views::TeamPlanner':+ "$ref": "../components/examples/view_team_planner.yml"+ description: Created+ headers: { }+ '400':+ content:+ application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"+ examples:+ response:+ value:+ _type: Error+ errorIdentifier: urn:openproject-org:api:v3:errors:InvalidRequestBody+ message: The request body was not a single JSON object.+ description: Occurs when the client did not send a valid JSON object in the+ request body.+ headers: { }+ '422':+ content:+ application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"+ examples:+ response:+ value:+ _embedded:+ details:+ attribute: query+ _type: Error+ errorIdentifier: urn:openproject-org:api:v3:errors:PropertyConstraintViolation+ message: "Query does not exist."+ description: |-+ Returned if:++ * the client tries to modify a read-only property (`PropertyIsReadOnly`)++ * a constraint for a property was violated (`PropertyConstraintViolation`)++ * the client provides a link to an invalid resource (`ResourceTypeMismatch`),+ e.g. a query not found+ headers: { }+ tags:+ - Views+ description: |-+ When calling this endpoint the client provides a single object, containing at least the properties and links that are required, in the body.+ The required fields of a View can be found in its schema, which is embedded in the respective form.+ Note that it is only allowed to provide properties or links supporting the write operation.++ There are different subtypes of `Views` (e.g. `Views::WorkPackagesTable`) with each having its own+ endpoint for creating that subtype e.g.++ * `/api/v3/views/work_packages_table` for `Views::WorkPackagesTable`+ * `/api/v3/views/team_planner` for `Views::TeamPlanner`+ * `/api/v3/views/work_packages_calendar` for `Views::WorkPackagesCalendar`++ **Not yet implemented** To get the list of available subtypes and by that the endpoints for creating a subtype, use the+ ```+ /api/v3/views/schemas+ ```+ endpoint.+ operationId: Create_views+ summary: Create viewdiff --git a/docs/api/apiv3/paths/views_{identifier}.yml b/docs/api/apiv3/paths/views_{identifier}.ymldeleted file mode 100644index 2fdaba94bec..00000000000--- a/docs/api/apiv3/paths/views_{identifier}.yml+++ /dev/null@@ -1,95 +0,0 @@-# /api/v3/views/{identifier}------post:- requestBody:- content:- application/json:- examples:- 'Views::WorkPackagesTable':- value:- _links:- query:- href: /api/v3/queries/5- 'Views::TeamPlanner':- value:- _links:- query:- href: /api/v3/queries/5- schema:- type: object- properties:- _links:- type: object- properties:- query:- type: object- properties:- href:- type: href- responses:- '201':- content:- application/hal+json:- examples:- 'Views::WorkPackagesTable':- "$ref": "../components/examples/view_work_packages_table.yml"- 'Views::TeamPlanner':- "$ref": "../components/examples/view_team_planner.yml"- description: Created- headers: {}- '400':- content:- application/hal+json:- examples:- response:- value:- _type: Error- errorIdentifier: urn:openproject-org:api:v3:errors:InvalidRequestBody- message: The request body was not a single JSON object.- description: Occurs when the client did not send a valid JSON object in the- request body.- headers: {}- '422':- content:- application/hal+json:- examples:- response:- value:- _embedded:- details:- attribute: query- _type: Error- errorIdentifier: urn:openproject-org:api:v3:errors:PropertyConstraintViolation- message: "Query does not exist."- description: |-- Returned if:-- * the client tries to modify a read-only property (`PropertyIsReadOnly`)-- * a constraint for a property was violated (`PropertyConstraintViolation`)-- * the client provides a link to an invalid resource (`ResourceTypeMismatch`),- e.g. a query not found- headers: {}- tags:- - Views- description: |-- When calling this endpoint the client provides a single object, containing at least the properties and links that are required, in the body.- The required fields of a View can be found in its schema, which is embedded in the respective form.- Note that it is only allowed to provide properties or links supporting the write operation.-- There are different subtypes of `Views` (e.g. `Views::WorkPackagesTable`) with each having its own- endpoint for creating that subtype e.g.-- * `/api/v3/views/work_packages_table` for `Views::WorkPackagesTable`- * `/api/v3/views/team_planner` for `Views::TeamPlanner`- * `/api/v3/views/work_packages_calendar` for `Views::WorkPackagesCalendar`-- **Not yet implemented** To get the list of available subtypes and by that the endpoints for creating a subtype, use the- ```- /api/v3/views/schemas- ```- endpoint.- operationId: Create_views- summary: Create viewdiff --git a/docs/api/apiv3/paths/wiki_page.yml b/docs/api/apiv3/paths/wiki_page.ymlindex a76959be2e6..054513bc901 100644--- a/docs/api/apiv3/paths/wiki_page.yml+++ b/docs/api/apiv3/paths/wiki_page.yml@@ -41,6 +41,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/wiki_page_attachments.yml b/docs/api/apiv3/paths/wiki_page_attachments.ymlindex 138a58c9f8f..46c6b2f49e1 100644--- a/docs/api/apiv3/paths/wiki_page_attachments.yml+++ b/docs/api/apiv3/paths/wiki_page_attachments.yml@@ -59,6 +59,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -173,6 +175,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -189,6 +193,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -205,6 +211,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -223,6 +231,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package.yml b/docs/api/apiv3/paths/work_package.ymlindex 86d87da1c10..87ae94ca520 100644--- a/docs/api/apiv3/paths/work_package.yml+++ b/docs/api/apiv3/paths/work_package.yml@@ -20,6 +20,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -34,6 +36,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -215,6 +219,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -402,6 +408,8 @@ patch:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -414,6 +422,8 @@ patch:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -428,6 +438,8 @@ patch:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -442,6 +454,8 @@ patch:'409':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -455,6 +469,8 @@ patch:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package_activities.yml b/docs/api/apiv3/paths/work_package_activities.ymlindex b6ec95aa444..fbce3f3b6a2 100644--- a/docs/api/apiv3/paths/work_package_activities.yml+++ b/docs/api/apiv3/paths/work_package_activities.yml@@ -63,6 +63,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -106,6 +108,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -118,6 +122,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -134,6 +140,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package_attachments.yml b/docs/api/apiv3/paths/work_package_attachments.ymlindex 1dc84cc8b2a..7bac2b2339e 100644--- a/docs/api/apiv3/paths/work_package_attachments.yml+++ b/docs/api/apiv3/paths/work_package_attachments.yml@@ -20,6 +20,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -87,6 +89,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -103,6 +107,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -119,6 +125,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -137,6 +145,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package_available_projects.yml b/docs/api/apiv3/paths/work_package_available_projects.ymlindex 553f63f57fc..0fa8bac430f 100644--- a/docs/api/apiv3/paths/work_package_available_projects.yml+++ b/docs/api/apiv3/paths/work_package_available_projects.yml@@ -83,6 +83,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -99,6 +101,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package_available_watchers.yml b/docs/api/apiv3/paths/work_package_available_watchers.ymlindex 4b909e6af0c..92c12de1c4d 100644--- a/docs/api/apiv3/paths/work_package_available_watchers.yml+++ b/docs/api/apiv3/paths/work_package_available_watchers.yml@@ -75,6 +75,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -91,6 +93,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package_form.yml b/docs/api/apiv3/paths/work_package_form.ymlindex a9c9fbd6e69..880079e5c9e 100644--- a/docs/api/apiv3/paths/work_package_form.yml+++ b/docs/api/apiv3/paths/work_package_form.yml@@ -16,6 +16,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -32,6 +34,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package_relations.yml b/docs/api/apiv3/paths/work_package_relations.ymlindex 4d0e431ecdf..9eeb5411e9e 100644--- a/docs/api/apiv3/paths/work_package_relations.yml+++ b/docs/api/apiv3/paths/work_package_relations.yml@@ -13,6 +13,8 @@ get:'302':content:text/plain:+ schema:+ type: stringexamples:response:value: 'You are being redirected to /api/v3/relations?involved={work_package_id}'@@ -42,6 +44,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -54,6 +58,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -68,6 +74,8 @@ post:'409':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -81,6 +89,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package_revisions.yml b/docs/api/apiv3/paths/work_package_revisions.ymlindex 82f85232fa1..7e10f642ea9 100644--- a/docs/api/apiv3/paths/work_package_revisions.yml+++ b/docs/api/apiv3/paths/work_package_revisions.yml@@ -81,6 +81,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -98,6 +100,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package_watcher.yml b/docs/api/apiv3/paths/work_package_watcher.ymlindex 483c43021f4..c14f53a444f 100644--- a/docs/api/apiv3/paths/work_package_watcher.yml+++ b/docs/api/apiv3/paths/work_package_watcher.yml@@ -23,6 +23,8 @@ delete:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -39,6 +41,8 @@ delete:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_package_watchers.yml b/docs/api/apiv3/paths/work_package_watchers.ymlindex 615bb1451d5..5320b5da6b9 100644--- a/docs/api/apiv3/paths/work_package_watchers.yml+++ b/docs/api/apiv3/paths/work_package_watchers.yml@@ -78,6 +78,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -94,6 +96,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -131,6 +135,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -151,6 +157,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -171,6 +179,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_packages.yml b/docs/api/apiv3/paths/work_packages.ymlindex 88faf11125e..85ed766ddc4 100644--- a/docs/api/apiv3/paths/work_packages.yml+++ b/docs/api/apiv3/paths/work_packages.yml@@ -87,6 +87,8 @@ get:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -100,6 +102,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -280,6 +284,8 @@ post:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -292,6 +298,8 @@ post:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -308,6 +316,8 @@ post:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -326,6 +336,8 @@ post:'422':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_packages_schemas.yml b/docs/api/apiv3/paths/work_packages_schemas.ymlindex 3ceeeef8db7..8a78d6d1b27 100644--- a/docs/api/apiv3/paths/work_packages_schemas.yml+++ b/docs/api/apiv3/paths/work_packages_schemas.yml@@ -43,6 +43,8 @@ get:'400':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:@@ -54,6 +56,8 @@ get:'403':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/docs/api/apiv3/paths/work_packages_schemas_{identifier}.yml b/docs/api/apiv3/paths/work_packages_schemas_{identifier}.ymlindex da0c6c7c759..71be1c5987c 100644--- a/docs/api/apiv3/paths/work_packages_schemas_{identifier}.yml+++ b/docs/api/apiv3/paths/work_packages_schemas_{identifier}.yml@@ -16,6 +16,8 @@ get:'404':content:application/hal+json:+ schema:+ $ref: "../components/schemas/error_response.yml"examples:response:value:diff --git a/lib/api/open_api.rb b/lib/api/open_api.rbindex f8708047a2e..2174e7a70c7 100644--- a/lib/api/open_api.rb+++ b/lib/api/open_api.rb@@ -19,6 +19,14 @@ module APIspecend+ def assemble_spec(file_path)+ spec = YAML.safe_load File.read(file_path.to_s)++ substitute_refs(spec, path: file_path.parent, root_path: file_path.parent)+ rescue Psych::SyntaxError => e+ raise "Failed to load #{file_path}: #{e.class} #{e.message}"+ end+privatedef memoized_spec@@ -35,14 +43,6 @@ module APIendend- def assemble_spec(file_path)- spec = YAML.safe_load File.read(file_path.to_s)-- substitute_refs(spec, path: file_path.parent, root_path: file_path.parent)- rescue Psych::SyntaxError => e- raise "Failed to load #{file_path}: #{e.class} #{e.message}"- end-def substitute_refs(spec, path:, root_path:, root_spec: spec)case specwhen Hashdiff --git a/script/api/validate_spec b/script/api/validate_specindex c4cd91ee112..d0dbbdea185 100755--- a/script/api/validate_spec+++ b/script/api/validate_spec@@ -18,7 +18,7 @@ beginend`npx @redocly/openapi-cli lint #{assembled_path}`-+status = $?.exitstatusensureFileUtils.rm assembled_path if File.exist? assembled_path