uiApplyInputSchema function
The ui_apply tool input's JSON Schema, for catalog's node types.
Implementation
Json uiApplyInputSchema(Catalog catalog) => {
'type': 'object',
'required': ['ops'],
'properties': {
'ops': {
'type': 'array',
'description': 'The ops, applied in order.',
'items': {
'anyOf': [for (final s in EditOp.specs) opSchema(s)],
},
},
'baseRev': {'type': 'integer', 'description': 'The revision you read (from ui_read or the last result).'},
'atomic': {'type': 'boolean', 'description': 'Apply all ops or none.'},
},
r'$defs': {'Node': nodeSchema(catalog)},
'additionalProperties': false,
};