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

[chore] Specify requestBody schema for post and patch project

Simon Bullik06039dcbba27
diff --git a/docs/api/apiv3/paths/project.yml b/docs/api/apiv3/paths/project.yml
index 06fc4ecb39e..2e23fe4b661 100644
--- a/docs/api/apiv3/paths/project.yml
+++ b/docs/api/apiv3/paths/project.yml
@@ -140,7 +140,7 @@ patch:
content:
application/json:
schema:
- type: object
+ $ref: '../components/schemas/project_model.yml'
examples:
"with custom fields":
"$ref": "../components/examples/project_body.yml"
diff --git a/docs/api/apiv3/paths/projects.yml b/docs/api/apiv3/paths/projects.yml
index 4e5d1c8bcd7..3ef68da8bfc 100644
--- a/docs/api/apiv3/paths/projects.yml
+++ b/docs/api/apiv3/paths/projects.yml
@@ -97,7 +97,7 @@ post:
content:
application/json:
schema:
- type: object
+ $ref: '../components/schemas/project_model.yml'
examples:
'with custom fields':
$ref: '../components/examples/project_body.yml'