File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ exports.discoverModelDefinitions = discoverModelDefinitions;
1818function discoverModelDefinitions ( json , options ) {
1919 const schemas = [ ] ;
2020 const stack = [ ] ;
21- const result = traverse ( json , { includeSymbols : false } ) . forEach ( function ( item ) {
21+ const result = traverse ( json , { includeSymbols : false } ) . forEach ( function ( item ) {
2222 let type = typeof item ;
2323
2424 if ( Array . isArray ( item ) ) {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ JsonTemplate.prototype.compile = function() {
4040 return this . schema ;
4141 }
4242 const schema = { } ;
43- traverse ( this . template , { includeSymbols : false } ) . reduce ( function ( schema , item ) {
43+ traverse ( this . template , { includeSymbols : false } ) . reduce ( function ( schema , item ) {
4444 const key = this . key ;
4545 const root = this . path [ 0 ] ;
4646 let match = null ;
@@ -118,7 +118,7 @@ JsonTemplate.prototype.build = function(parameters) {
118118 this . compile ( ) ;
119119
120120 function transform ( obj ) {
121- return traverse ( obj , { includeSymbols : false } ) . map ( function ( item ) {
121+ return traverse ( obj , { includeSymbols : false } ) . map ( function ( item ) {
122122 const ctx = this ;
123123 const templates = / \{ ( ( [ \! \^ ] ? [ a - z A - Z \$ _ ] [ \w \$ ] * ) \s * ( = ( [ ^ : \{ \} ] + ) ) ? ( : ( \w + ) ) ? ) \} / g;
124124 function build ( item ) {
You can’t perform that action at this time.
0 commit comments