@unito/integration-debugger
Version:
The Unito Integration Debugger
30 lines (29 loc) • 804 B
TypeScript
import * as CrawlerDriver from '../crawlerDriver';
/**
* Check: That subfields of a readOnly field of type `OBJECT` are also readOnly
*
* @example
* The item "foo" cannot have a readOnly field "bar" with subfields that are not readOnly:
* {
* name: 'bar',
* label: 'BAR',
* type: FieldValueType.OBJECT,
* readOnly: true,
* fields: [
* {
* name: 'id',
* label: 'ID',
* type: FieldValueType.NUMBER,
* readOnly: true,
* },
* {
* name: 'name',
* label: 'Name',
* type: FieldValueType.STRING,
* readOnly: false, // <-- This field cannot be updated since the parent field is readOnly
* },
* ],
* },
*/
declare const check: CrawlerDriver.StepCheck;
export default check;