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