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

attachments_model.yml inherits from collection_model.yml

Gunter Ohrnerd3cdbb2d5481
diff --git a/docs/api/apiv3/components/schemas/attachments_model.yml b/docs/api/apiv3/components/schemas/attachments_model.yml
index 537b25df0a0..1a07df9f857 100644
--- a/docs/api/apiv3/components/schemas/attachments_model.yml
+++ b/docs/api/apiv3/components/schemas/attachments_model.yml
@@ -1,15 +1,33 @@
# Schema: Attachments
---
-type: object
-properties:
- _embedded:
- type: object
+allOf:
+ - "$ref": "./collection_model.yml"
+ - type: object
+ required:
+ - _links
+ - _embedded
properties:
- elements:
- type: array
- readOnly: true
- items:
+ _links:
+ type: object
+ required:
+ - self
+ properties:
+ self:
allOf:
- - "$ref": "./attachment_model.yml"
- - description: Collection of Attachments
+ - "$ref": "./link.yml"
+ - description: |-
+ The attachments collection
+
+ **Resource**: AttachmentsCollection
+ readOnly: true
+ _embedded:
+ type: object
+ properties:
+ elements:
+ type: array
readOnly: true
+ items:
+ allOf:
+ - "$ref": "./attachment_model.yml"
+ - description: Collection of Attachments
+ readOnly: true