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
ce82d2ca
Commit
ce82d2ca
authored
Aug 04, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix json schema definition
parent
16ff81b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/ee/fixtures/api/schemas/public_api/v4/issues.json
spec/ee/fixtures/api/schemas/public_api/v4/issues.json
+1
-1
spec/support/api/schema_matcher.rb
spec/support/api/schema_matcher.rb
+1
-1
No files found.
spec/ee/fixtures/api/schemas/public_api/v4/issues.json
View file @
ce82d2ca
{
"allOf"
:
[
{
"$ref"
:
"../issues.json"
},
{
"$ref"
:
"../
../../../../../fixtures/api/schemas/public_api/v4/
issues.json"
},
{
"properties"
:
{
"weight"
:
{
"type"
:
[
"integer"
,
"null"
]
}
...
...
spec/support/api/schema_matcher.rb
View file @
ce82d2ca
...
...
@@ -13,7 +13,7 @@ RSpec::Matchers.define :match_response_schema do |schema, dir: '', **options|
end
failure_message
do
|
response
|
"didn't match the schema defined by
#{
schema_path
(
schema
)
}
"
\
"didn't match the schema defined by
#{
SchemaPath
.
expand
(
schema
,
dir
)
}
"
\
" The validation errors were:
\n
#{
@errors
.
join
(
"
\n
"
)
}
"
end
end
...
...
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