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

work_package_model: adjust Collection types

Gunter Ohrner5a35139cdbb5
diff --git a/docs/api/apiv3/components/schemas/work_package_model.yml b/docs/api/apiv3/components/schemas/work_package_model.yml
index bfa35c022a8..1682e894b35 100644
--- a/docs/api/apiv3/components/schemas/work_package_model.yml
+++ b/docs/api/apiv3/components/schemas/work_package_model.yml
@@ -293,17 +293,20 @@ properties:
**Resource**: Category
children:
- allOf:
- - "$ref": "./link.yml"
- - description: |-
- Array of all visible children of the work package
+ type: array
+ readOnly: true
+ items:
+ allOf:
+ - "$ref": "./link.yml"
+ - description: |-
+ Array of all visible children of the work package
- **Resource**: Collection
+ **Resource**: Collection
- # Conditions
+ # Conditions
- **Permission** view work packages
- readOnly: true
+ **Permission** view work packages
+ readOnly: true
parent:
allOf:
- "$ref": "./link.yml"
@@ -390,17 +393,20 @@ properties:
**Resource**: Version
watchers:
- allOf:
- - "$ref": "./link.yml"
- - description: |-
- All users that are currently watching this work package
+ type: array
+ readOnly: true
+ items:
+ allOf:
+ - "$ref": "./link.yml"
+ - description: |-
+ All users that are currently watching this work package
- **Resource**: Collection
+ **Resource**: Collection
- # Conditions
+ # Conditions
- **Permission** view work package watchers
- readOnly: true
+ **Permission** view work package watchers
+ readOnly: true
example:
_type: WorkPackage
_links: