Adjust weight property to accomodate EE

This commit is contained in:
Brett Walker 2018-12-03 16:33:16 -06:00
parent 2674830e4d
commit 272c9f11b4
2 changed files with 1 additions and 2 deletions

View file

@ -11,7 +11,6 @@ class IssueBoardEntity < Grape::Entity
expose :due_date
expose :project_id
expose :relative_position
expose :weight, if: -> (*) { respond_to?(:weight) }
expose :project do |issue|
API::Entities::Project.represent issue.project, only: [:id, :path]

View file

@ -9,7 +9,7 @@
"project_id": { "type": "integer" },
"relative_position": { "type": ["integer", "null"] },
"time_estimate": { "type": "integer" },
"weight": { "type": "integer" },
"weight": { "type": ["integer", "null"] },
"project": {
"type": "object",
"properties": {