Class: BrokenRulesResponse

bo.rules. BrokenRulesResponse

Represents the HTTP Response format of broken rules. The data property holds the information of broken rules.

 If the model property is a simple property, i.e. it is defined by
 a data type, then the output property
 is an array. The array elements are objects with a message and a
 severity property, that represent the broken rules.

 If the model property is a child model, then the output property
 is an object as well, whose properties represents model properties
 with broken rules, as described above.

 If the model property is a child collection, then the output property
 is an object as well, whose properties are the indeces of the items of
 the collections. The property name is a number in '00000' format. The
 property value represents the child item, as described above.

new BrokenRulesResponse(brokenRules, message)

Creates a new broken rules response instance.

Parameters:
Name Type Argument Description
brokenRules bo.rules.BrokenRulesOutput

The broken rules to send to the client.

message string <optional>

Human-readable description of the reason of the failure.

Throws:

Members

count :number

The count of the broken rules.

Type:
  • number

<readonly> data :object

The object of the broken rules.

Type:
  • object

<readonly> message :string

Human-readable description of the reason of the failure.

Type:
  • string

<readonly> name :string

The name of the response object.

Type:
  • string
Default Value:
  • "BrokenRules"

<readonly> status :number

The status code of the HTTP response.

Type:
  • number
Default Value:
  • 422
If you find bugs or have feature requests, please let us know.

JavaScript business objects ♦ Copyright © 2014-2016 Logikum, Ltd.
Documentation generated by JSDoc 3.2.2 on 2015. December 31. using the DocStrap template.