The refusal
rslc.PreparedRater.rate returns one JSON object. This refusal comes from the dwelling fire
rater, for a Coverage A of 10 and a protection class of 11:
Each violation has six fields:
The JSON is compact, with sorted keys and numbers in exact decimal form.
Codes
A rule with its own code reports that code. Every other rule reports one of these:
A rule’s own code replaces the
INPUT code of a range, length or other rule. Type checks,
INPUT-KEY and INPUT-REF keep their own codes.
Order of the checks
The rater checks a request in three passes:- Shape. Each record, input and value has the declared kind, enum member, pattern and precision.
- Keys. Each
keyed bykey is unique, and each reference names an element of its list. - Rules. Each
whererule holds. The rater checks each record’s inputs in order, then the records inside it, then the record’s own rules.
Size limits
A text cut short ends with
…. When a limit cuts the refusal, truncated is true.
In each host
Both Python errors carry
violations, truncated and refusal_json. BusinessRejection also
carries the first rule’s code and message.
Related
- RSL at a glance shows how to write each rule.