repair property
bool?
get
repair
Whether to ask the model to fix a block that failed to compile. Defaults
to true.
On a failure the middleware sends one small follow-up call containing the
error, the Express contract, and the failed block, then compiles the
reply. This costs an extra model call on the failure path only, and never
runs for errors a rewrite cannot fix. Set false to drop bad blocks
outright.
Implementation
bool? get repair {
return _json['repair'] as bool?;
}
set
repair
(bool? value)
Whether to ask the model to fix a block that failed to compile. Defaults
to true.
On a failure the middleware sends one small follow-up call containing the
error, the Express contract, and the failed block, then compiles the
reply. This costs an extra model call on the failure path only, and never
runs for errors a rewrite cannot fix. Set false to drop bad blocks
outright.
Implementation
set repair(bool? value) {
if (value == null) {
_json.remove('repair');
} else {
_json['repair'] = value;
}
}