ng-swagger-gen.js
function resolveRef(swagger, ref) {
  if (ref.indexOf('#/') != 0) {
    console.error('Resolved references must start with #/. Current: ' + ref);
    process.exit(1);
  }
  var parts = ref.substr(2).split('/');
  var result = swagger;
  for (var i = 0; i < parts.length; i++) {
    var part = parts[i];
    result = result[part];
  }
  return result === swagger ? {} : result;
}
function resolveRef(swagger, ref) {
  if (ref.indexOf('#/') != 0) {
    console.error('Resolved references must start with #/. Current: ' + ref);
    process.exit(1);
  }
  var parts = ref.substr(2).split('/');
  var result = swagger;
  for (var i = 0; i < parts.length; i++) {
    var part = parts[i];
    result = result[part];
  }
  return result === swagger ? {} : result;
}
function resolveRef ( swagger , ref ) { if ( ref . indexOf ( '#/' ) != 0 ) { console . error ( 'Resolved references must start with #/. Current: ' + ref ) ; process . exit ( 1 ) ; } var parts = ref . substr ( 2 ) . split ( '/' ) ; var result = swagger ; for ( var i = 0 ; i < parts . length ; i ++ ) { var part = parts [ i ] ; result = result [ part ] ; } return result === swagger ? { } : result ; }
Resolves a local reference in the given swagger file
Resolves a local reference in the given swagger file