Defines a validation rule and registers it with the manifest.
A validation rule evaluates an RQL formula on save and blocks the operation when the formula returns true. You would normally define validations after the fields they reference.
**Violation semantics:** the formula encodes the *invalid* condition, not the valid one. '(end_time__c <= start_time__c)' fires when end is before or equal to start — i.e., it is truthy when the record is wrong.
Type definition
export declare class Validation {
constructor(customObject: ObjectReference, props: ValidationProps & {
apiName: Config['api_name'];
});
getRuleId(): string;
getCustomObjectApiName(): string;
getApiName(): Config['api_name'];
toDict(): Config;
}