Commit 7a7bcc1f authored by Felipe Artur's avatar Felipe Artur

Include type column for labels

parent 7052de99
......@@ -176,6 +176,7 @@ class Label < ActiveRecord::Base
def as_json(options = {})
super(options).tap do |json|
json[:type] = self.type
json[:priority] = priority(options[:project]) if options.key?(:project)
end
end
......
......@@ -39,6 +39,7 @@
"type": "string",
"pattern": "^#[0-9A-Fa-f]{3}{1,2}+$"
},
"type": { "type": "string" },
"title": { "type": "string" },
"priority": { "type": ["integer", "null"] }
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment