Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsonschema2md
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fork
jsonschema2md
Commits
3d3a89dc
Commit
3d3a89dc
authored
7 years ago
by
Lars Trieloff
Browse files
Options
Downloads
Patches
Plain Diff
[trivial] fix linting error
parent
2959dc70
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/schema.js
+2
-3
2 additions, 3 deletions
lib/schema.js
with
2 additions
and
3 deletions
lib/schema.js
+
2
−
3
View file @
3d3a89dc
...
...
@@ -161,7 +161,7 @@ processISchema = Promise.method(function(schema,base$id){
return
schema
;
});
function
processSchema
(
schema
){
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
!
schema
.
properties
)
{
schema
.
properties
=
{};}
var
$id
=
schema
[
'
$id
'
]
||
schema
[
'
id
'
];
var
base$id
=
$id
;
...
...
@@ -181,7 +181,6 @@ function processSchema(schema){
if
(
!
wmap
[
base$id
][
refArr
.
startpart
]){
wmap
[
base$id
][
refArr
.
startpart
]
=
link
;
}
}
if
(
pointer
.
has
(
obj
,
refArr
.
endpart
)){
...
...
@@ -226,7 +225,7 @@ function processSchema(schema){
if
(
key
in
ischema
[
'
required
'
])
{
schema
.
required
.
push
(
key
);}
}
}
else
{
//error
reject
(
'
No further schema found
'
);
}
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment