ng-swagger-gen.js
function processProperties(swagger, properties, requiredProperties) {
  var result = {};
  for (var name in properties) {
    var property = properties[name];
    var descriptor = {
      propertyName: name.indexOf('-') === -1 ? name : `"${name}"`,
      propertyComments: toComments(property.description, 1),
      propertyRequired: requiredProperties.indexOf(name) >= 0,
      propertyType: propertyType(property),
    };
    result[name] = descriptor;
  }
  return result;
}
function processProperties(swagger, properties, requiredProperties) {
  var result = {};
  for (var name in properties) {
    var property = properties[name];
    var descriptor = {
      propertyName: name.indexOf('-') === -1 ? name : `"${name}"`,
      propertyComments: toComments(property.description, 1),
      propertyRequired: requiredProperties.indexOf(name) >= 0,
      propertyType: propertyType(property),
    };
    result[name] = descriptor;
  }
  return result;
}
function processProperties ( swagger , properties , requiredProperties ) { var result = { } ; for ( var name in properties ) { var property = properties [ name ] ; var descriptor = { propertyName : name . indexOf ( '-' ) === - 1 ? name : ` ${ name } ` , propertyComments : toComments ( property . description , 1 ) , propertyRequired : requiredProperties . indexOf ( name ) >= 0 , propertyType : propertyType ( property ) , } ; result [ name ] = descriptor ; } return result ; }
Process each property for the given properties object, returning an object
keyed by property name with simplified property types
Process each property for the given properties object returning an object keyed by property name with simplified property types