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

fix api spec

ulferts85a238ba82df
diff --git a/docs/api/apiv3/components/schemas/notification_collection_model.yml b/docs/api/apiv3/components/schemas/notification_collection_model.yml
index a9346136b2a..ec248ab778a 100644
--- a/docs/api/apiv3/components/schemas/notification_collection_model.yml
+++ b/docs/api/apiv3/components/schemas/notification_collection_model.yml
@@ -46,5 +46,4 @@ allOf:
detailsSchemas:
type: array
items:
- oneOf:
- $ref: './schema_model.yml'
+ $ref: './schema_model.yml'
diff --git a/docs/api/apiv3/components/schemas/root_model.yml b/docs/api/apiv3/components/schemas/root_model.yml
index fb060c3ccc6..a2abf832431 100644
--- a/docs/api/apiv3/components/schemas/root_model.yml
+++ b/docs/api/apiv3/components/schemas/root_model.yml
@@ -141,4 +141,4 @@ example:
userPreferences:
href: '/api/v3/users/3/preferences'
workPackages:
- href: '/pi/v3/work_packages'
+ href: '/api/v3/work_packages'
diff --git a/docs/api/apiv3/components/schemas/schema_model.yml b/docs/api/apiv3/components/schemas/schema_model.yml
index 4c2e1d18cb6..3ed68116467 100644
--- a/docs/api/apiv3/components/schemas/schema_model.yml
+++ b/docs/api/apiv3/components/schemas/schema_model.yml
@@ -1,7 +1,14 @@
# Schema: SchemaModel
---
type: object
+required:
+ - _type
+ - _links
properties:
+ _type:
+ type: string
+ enum:
+ - Schema
_dependencies:
type: array
description: A list of dependencies between one property's value and another property
diff --git a/docs/api/apiv3/components/schemas/values_property_model.yml b/docs/api/apiv3/components/schemas/values_property_model.yml
index 414b6817740..9d5d4ceb628 100644
--- a/docs/api/apiv3/components/schemas/values_property_model.yml
+++ b/docs/api/apiv3/components/schemas/values_property_model.yml
@@ -15,13 +15,7 @@ properties:
type: string
description: The key of the key - value pair represented by the Values::Property
value:
- type:
- oneOf:
- - String
- - Integer
- - Float
- - Duration
- - Date
+ type: string
description: The value of the key - value pair represented by the Values::Property
_links:
type: object
diff --git a/docs/api/apiv3/paths/values_schema.yml b/docs/api/apiv3/paths/values_schema.yml
index d3bde9ed425..e1f1522cba3 100644
--- a/docs/api/apiv3/paths/values_schema.yml
+++ b/docs/api/apiv3/paths/values_schema.yml
@@ -8,7 +8,7 @@ get:
example: 'startDate'
required: true
schema:
- type: String
+ type: string
responses:
'200':
content: