Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d961f6eb
Commit
d961f6eb
authored
Jul 27, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a JSON schema validation issue for group milestone
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
cab2ff61
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
94 deletions
+10
-94
spec/fixtures/api/schemas/public_api/v4/ee/issues.json
spec/fixtures/api/schemas/public_api/v4/ee/issues.json
+8
-91
spec/fixtures/api/schemas/public_api/v4/issues.json
spec/fixtures/api/schemas/public_api/v4/issues.json
+1
-2
spec/support/api/milestones_shared_examples.rb
spec/support/api/milestones_shared_examples.rb
+1
-1
No files found.
spec/fixtures/api/schemas/public_api/v4/ee/issues.json
View file @
d961f6eb
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"iid"
:
{
"type"
:
"integer"
},
"project_id"
:
{
"type"
:
"integer"
},
"title"
:
{
"type"
:
"string"
},
"description"
:
{
"type"
:
[
"string"
,
"null"
]
},
"state"
:
{
"type"
:
"string"
},
"created_at"
:
{
"type"
:
"date"
},
"updated_at"
:
{
"type"
:
"date"
},
"labels"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"milestone"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"iid"
:
{
"type"
:
"integer"
},
"project_id"
:
{
"type"
:
"integer"
},
"group_id"
:
{
"type"
:
[
"integer"
,
"null"
]
},
"title"
:
{
"type"
:
"string"
},
"description"
:
{
"type"
:
[
"string"
,
"null"
]
},
"state"
:
{
"type"
:
"string"
},
"created_at"
:
{
"type"
:
"date"
},
"updated_at"
:
{
"type"
:
"date"
},
"due_date"
:
{
"type"
:
"date"
},
"start_date"
:
{
"type"
:
"date"
}
},
"additionalProperties"
:
false
},
"assignees"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
[
"object"
,
"null"
],
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"username"
:
{
"type"
:
"string"
},
"id"
:
{
"type"
:
"integer"
},
"state"
:
{
"type"
:
"string"
},
"avatar_url"
:
{
"type"
:
"uri"
},
"web_url"
:
{
"type"
:
"uri"
}
},
"additionalProperties"
:
false
}
},
"assignee"
:
{
"type"
:
[
"object"
,
"null"
],
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"username"
:
{
"type"
:
"string"
},
"id"
:
{
"type"
:
"integer"
},
"state"
:
{
"type"
:
"string"
},
"avatar_url"
:
{
"type"
:
"uri"
},
"web_url"
:
{
"type"
:
"uri"
}
},
"additionalProperties"
:
false
},
"author"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"username"
:
{
"type"
:
"string"
},
"id"
:
{
"type"
:
"integer"
},
"state"
:
{
"type"
:
"string"
},
"avatar_url"
:
{
"type"
:
"uri"
},
"web_url"
:
{
"type"
:
"uri"
}
},
"additionalProperties"
:
false
},
"user_notes_count"
:
{
"type"
:
"integer"
},
"upvotes"
:
{
"type"
:
"integer"
},
"downvotes"
:
{
"type"
:
"integer"
},
"due_date"
:
{
"type"
:
[
"date"
,
"null"
]
},
"confidential"
:
{
"type"
:
"boolean"
},
"web_url"
:
{
"type"
:
"uri"
},
"weight"
:
{
"type"
:
[
"integer"
,
"null"
]
}
},
"required"
:
[
"id"
,
"iid"
,
"project_id"
,
"title"
,
"description"
,
"state"
,
"created_at"
,
"updated_at"
,
"labels"
,
"milestone"
,
"assignees"
,
"author"
,
"user_notes_count"
,
"upvotes"
,
"downvotes"
,
"due_date"
,
"confidential"
,
"web_url"
,
"weight"
],
"additionalProperties"
:
false
}
"allOf"
:
[
{
"$ref"
:
"../issues.json"
},
{
"properties"
:
{
"weight"
:
{
"type"
:
[
"integer"
,
"null"
]
}
}
}
]
}
spec/fixtures/api/schemas/public_api/v4/issues.json
View file @
d961f6eb
...
...
@@ -86,7 +86,6 @@
"milestone"
,
"assignees"
,
"author"
,
"user_notes_count"
,
"upvotes"
,
"downvotes"
,
"due_date"
,
"confidential"
,
"web_url"
],
"additionalProperties"
:
false
]
}
}
spec/support/api/milestones_shared_examples.rb
View file @
d961f6eb
...
...
@@ -229,7 +229,7 @@ shared_examples_for 'group and project milestones' do |route_definition|
get
api
(
issues_route
,
user
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
match_response_schema
(
'public_api/v4/issues'
)
expect
(
response
).
to
match_response_schema
(
'public_api/v4/
ee/
issues'
)
end
it
'returns a 401 error if user not authenticated'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment