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

Explicitly set name_source to fix schema spec

Oliver Güntherd6207ad56c66
diff --git a/lib/api/v3/work_packages/schema/work_package_schema_representer.rb b/lib/api/v3/work_packages/schema/work_package_schema_representer.rb
index f2befe39895..d6ffc82c506 100644
--- a/lib/api/v3/work_packages/schema/work_package_schema_representer.rb
+++ b/lib/api/v3/work_packages/schema/work_package_schema_representer.rb
@@ -154,6 +154,7 @@ module API
required: false
schema :derived_estimated_time,
+ name_source: ->(*) { I18n.t('attributes.derived_estimated_hours') },
type: 'Duration',
required: false