lib/types/response.js
function Response (operationObject, statusCode, definition, definitionFullyResolved, pathToDefinition) {
  // Assign local properties
  this.definition = definition;
  this.definitionFullyResolved = definitionFullyResolved;
  this.operationObject = operationObject;
  this.pathToDefinition = pathToDefinition;
  this.ptr = JsonRefs.pathToPtr(pathToDefinition);
  this.statusCode = statusCode;

  // Assign local properties from the OpenAPI Response Object definition
  _.assign(this, definitionFullyResolved);

  this.operationObject.pathObject.apiDefinition._debug('            %s at %s', statusCode, this.ptr);
}
function Response (operationObject, statusCode, definition, definitionFullyResolved, pathToDefinition) {
  // Assign local properties
  this.definition = definition;
  this.definitionFullyResolved = definitionFullyResolved;
  this.operationObject = operationObject;
  this.pathToDefinition = pathToDefinition;
  this.ptr = JsonRefs.pathToPtr(pathToDefinition);
  this.statusCode = statusCode;

  // Assign local properties from the OpenAPI Response Object definition
  _.assign(this, definitionFullyResolved);

  this.operationObject.pathObject.apiDefinition._debug('            %s at %s', statusCode, this.ptr);
}
function Response ( operationObject , statusCode , definition , definitionFullyResolved , pathToDefinition ) { // Assign local properties this . definition = definition ; this . definitionFullyResolved = definitionFullyResolved ; this . operationObject = operationObject ; this . pathToDefinition = pathToDefinition ; this . ptr = JsonRefs . pathToPtr ( pathToDefinition ) ; this . statusCode = statusCode ; // Assign local properties from the OpenAPI Response Object definition _ . assign ( this , definitionFullyResolved ) ; this . operationObject . pathObject . apiDefinition . _debug ( '            %s at %s' , statusCode , this . ptr ) ; }
The OpenAPI Response object.

**Note:** Do not use directly.

**Extra Properties:** Other than the documented properties, this object also exposes all properties of the
[OpenAPI Response Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#responseObject).

@param {module:sway.Operation} operationObject - The `Operation` object
@param {string} statusCode - The status code
@param {object} definition - The response definition *(The raw response definition __after__ remote references were
resolved)*
@param {object} definitionFullyResolved - The response definition with all of its resolvable references resolved
@param {string[]} pathToDefinition - The path segments to the path definition

@property {object} definition - The response definition *(The raw responsedefinition __after__ remote references were
resolved)*
@property {object} definitionFullyResolved - The response definition with all of its resolvable references resolved
@property {module:sway.Operation} operationObject - The Operation object
@property {string[]} pathToDefinition - The path segments to the path definition
@property {string} ptr - The JSON Pointer to the response definition
@property {string} statusCode - The status code

@constructor

@memberof module:sway
The OpenAPI Response object .