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

Incorporated review remarks from Kharonus.

Gunter Ohrner84b9a3e0b595
diff --git a/docs/api/apiv3/components/schemas/watchers_model.yml b/docs/api/apiv3/components/schemas/watchers_model.yml
index 5b2983c8aa8..dba67d068ea 100644
--- a/docs/api/apiv3/components/schemas/watchers_model.yml
+++ b/docs/api/apiv3/components/schemas/watchers_model.yml
@@ -1,43 +1,36 @@
# Schema: WatchersModel
---
-type: object
-properties:
- total:
- type: integer
- description: Total number of entries
- readOnly: true
- minimum: 0
- exclusiveMinimum: false
- count:
- type: integer
- description: Embedded number of entries
- readOnly: true
- minimum: 0
- exclusiveMinimum: false
- _links:
- type: object
+allOf:
+ - "$ref": "./collection_model.yml"
+ - type: object
required:
- - self
- properties:
- self:
- allOf:
- - "$ref": "./link.yml"
- - description: |-
- The watcher list
-
- **Resource**: WatchersModel
- readOnly: true
- _embedded:
- type: object
+ - _links
+ - _embedded
properties:
- elements:
- type: array
- readOnly: true
- items:
+ _links:
+ type: object
+ required:
+ - self
+ properties:
+ self:
allOf:
- - "$ref": "./user_model.yml"
- - description: Collection of Users
+ - "$ref": "./link.yml"
+ - description: |-
+ The watcher list
+
+ **Resource**: WatchersModel
+ readOnly: true
+ _embedded:
+ type: object
+ properties:
+ elements:
+ type: array
readOnly: true
+ items:
+ allOf:
+ - "$ref": "./user_model.yml"
+ - description: Collection of Users
+ readOnly: true
example:
_links:
self:
diff --git a/docs/api/apiv3/components/schemas/work_packages_by_project_model.yml b/docs/api/apiv3/components/schemas/work_packages_by_project_model.yml
deleted file mode 100644
index 4793e886653..00000000000
--- a/docs/api/apiv3/components/schemas/work_packages_by_project_model.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-# Schema: Work_Packages_by_ProjectModel
----
-$ref: "./work_packages_model.yml"
-example:
- _links:
- self:
- href: "/api/v3/projects/14/work_packages"
- total: 2
- count: 2
- _type: Collection
- _embedded:
- elements:
- - _type: WorkPackage
- _links:
- self:
- href: "/api/v3/work_packages/1"
- id: 1
- subject: Skipped other properties for brevity
- - _type: WorkPackage
- _links:
- self:
- href: "/api/v3/work_packages/2"
- id: 2
- subject: Skipped other properties for brevity
diff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.yml
index 0b70eb38270..65d43a995bb 100644
--- a/docs/api/apiv3/openapi-spec.yml
+++ b/docs/api/apiv3/openapi-spec.yml
@@ -759,8 +759,6 @@ components:
"$ref": "./components/schemas/work_package_activities_model.yml"
Work_PackagesModel:
"$ref": "./components/schemas/work_packages_model.yml"
- Work_Packages_by_ProjectModel:
- "$ref": "./components/schemas/work_packages_by_project_model.yml"
securitySchemes:
BasicAuth:
type: http
diff --git a/docs/api/apiv3/paths/project_work_packages.yml b/docs/api/apiv3/paths/project_work_packages.yml
index dd22bd7d78b..fe03b6d620c 100644
--- a/docs/api/apiv3/paths/project_work_packages.yml
+++ b/docs/api/apiv3/paths/project_work_packages.yml
@@ -96,7 +96,7 @@ get:
count: 2
total: 2
schema:
- "$ref": "../components/schemas/work_packages_by_project_model.yml"
+ "$ref": "../components/schemas/work_packages_model.yml"
description: OK
headers: {}
'400':