Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
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
0
Merge Requests
0
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
Jérome Perrin
rjs_json_form
Commits
363830cf
Commit
363830cf
authored
Feb 25, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove callback trees
parent
5c7e7eaf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
gadget_erp5_page_slap_load_schema.js
gadget_erp5_page_slap_load_schema.js
+16
-14
No files found.
gadget_erp5_page_slap_load_schema.js
View file @
363830cf
...
...
@@ -111,14 +111,16 @@
full_schema
,
base_url
);
}).
push
(
function
(
referencedx
)
{
})
.
push
(
function
(
referencedx
)
{
extend
(
expanded_json_schema
,
referencedx
);
delete
expanded_json_schema
.
$ref
;
return
true
;
});
}
return
true
;
}).
push
(
function
()
{
})
.
push
(
function
()
{
var
property
,
queue
=
RSVP
.
Queue
();
...
...
@@ -222,11 +224,11 @@
})
.
declareMethod
(
"
validateJSONForSoftwareType
"
,
function
(
schema_url
,
software_type
,
generated_json
)
{
var
base_url
=
getBaseUrl
(
schema_url
);
return
getJSON
(
schema_url
)
.
push
(
function
(
json_object
)
{
var
parameter_schema_url
,
st
,
base_url
=
getBaseUrl
(
schema_url
);
st
;
for
(
st
in
json_object
[
"
software-type
"
])
{
if
(
json_object
[
"
software-type
"
].
hasOwnProperty
(
st
))
{
...
...
@@ -236,14 +238,14 @@
}
}
return
getJSON
(
parameter_schema_url
,
base_url
)
return
getJSON
(
parameter_schema_url
,
base_url
);
})
.
push
(
function
(
schema
)
{
return
expandSchema
(
schema
,
schema
,
base_url
)
return
expandSchema
(
schema
,
schema
,
base_url
);
})
.
push
(
function
(
loaded_json
)
{
return
tv4
.
validateMultiple
(
generated_json
,
loaded_json
);
});
});
});
})
.
declareMethod
(
"
validateJSON
"
,
function
(
schema_url
,
generated_json
)
{
...
...
@@ -251,10 +253,10 @@
.
push
(
function
(
schema
)
{
var
base_url
=
getBaseUrl
(
schema_url
);
return
expandSchema
(
schema
,
schema
,
base_url
)
})
.
push
(
function
(
loaded_schema
)
{
return
tv4
.
validateMultiple
(
generated_json
,
loaded_schema
);
});
});
});
}(
window
,
rJS
,
RSVP
,
URI
,
jIO
,
tv4
));
\ No newline at end of file
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