Fix JSON Schema that validates data returned by board issues endpoint

This commit is contained in:
Douglas Barbosa Alexandre 2016-10-06 11:51:38 -03:00 committed by Phil Hughes
parent 18607d6c88
commit 0c286d5473
2 changed files with 2 additions and 1 deletions

View file

@ -21,7 +21,7 @@ describe Projects::Boards::IssuesController do
it 'returns issues that have the list label applied' do
johndoe = create(:user, avatar: fixture_file_upload(File.join(Rails.root, 'spec/fixtures/dk.png')))
create(:labeled_issue, project: project, labels: [planning])
create(:labeled_issue, project: project, labels: [development])
create(:labeled_issue, project: project, labels: [development], due_date: Date.tomorrow)
create(:labeled_issue, project: project, labels: [development], assignee: johndoe)
list_issues user: user, list_id: list2

View file

@ -9,6 +9,7 @@
"iid": { "type": "integer" },
"title": { "type": "string" },
"confidential": { "type": "boolean" },
"due_date": { "type": ["date", "null"] },
"labels": {
"type": "array",
"items": {