lib/schema/transform.js
function model(spec) {
  var schema = lodash.cloneDeep(spec);

  delete schema.id;

  schema = transform(schema, {
    removeFormats: true,
  });

  return schema;
}
function model(spec) {
  var schema = lodash.cloneDeep(spec);

  delete schema.id;

  schema = transform(schema, {
    removeFormats: true,
  });

  return schema;
}
function model ( spec ) { var schema = lodash . cloneDeep ( spec ) ; delete schema . id ; schema = transform ( schema , { removeFormats : true , } ) ; return schema ; }
Convert Swagger model to JSON Schema.
Convert Swagger model to JSON Schema .