Fix JSON Schema that validates data returned by board issues endpoint
This commit is contained in:
parent
18607d6c88
commit
0c286d5473
2 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ describe Projects::Boards::IssuesController do
|
||||||
it 'returns issues that have the list label applied' 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')))
|
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: [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)
|
create(:labeled_issue, project: project, labels: [development], assignee: johndoe)
|
||||||
|
|
||||||
list_issues user: user, list_id: list2
|
list_issues user: user, list_id: list2
|
||||||
|
|
1
spec/fixtures/api/schemas/issue.json
vendored
1
spec/fixtures/api/schemas/issue.json
vendored
|
@ -9,6 +9,7 @@
|
||||||
"iid": { "type": "integer" },
|
"iid": { "type": "integer" },
|
||||||
"title": { "type": "string" },
|
"title": { "type": "string" },
|
||||||
"confidential": { "type": "boolean" },
|
"confidential": { "type": "boolean" },
|
||||||
|
"due_date": { "type": ["date", "null"] },
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|
Loading…
Reference in a new issue