lib/mock/semantic-response.js
function getResourceSchemas (path) {
  let schemas = [];

  ["post", "put", "patch"].forEach((operation) => {
    if (path[operation]) {
      schemas.push(util.getRequestSchema(path, path[operation]));
    }
  });

  return schemas;
}
function getResourceSchemas (path) {
  let schemas = [];

  ["post", "put", "patch"].forEach((operation) => {
    if (path[operation]) {
      schemas.push(util.getRequestSchema(path, path[operation]));
    }
  });

  return schemas;
}
function getResourceSchemas ( path ) { let schemas = [ ] ; [ "post" , "put" , "patch" ] . forEach ( ( operation ) => { if ( path [ operation ] ) { schemas . push ( util . getRequestSchema ( path , path [ operation ] ) ) ; } } ) ; return schemas ; }
Returns the JSON schemas for the given path's PUT, POST, and PATCH operations.
Usually these operations are not wrapped, so we can assume that they are the actual resource schema.

@param   {object}    path - A Path object, from the Swagger API.
@returns {object[]}       - An array of JSON schema objects
Returns the JSON schemas for the given path s PUT POST and PATCH operations . Usually these operations are not wrapped so we can assume that they are the actual resource schema .