SchemaValidationRule

Base contract for schema validation rules that produce invalid example values.

Inputs: a schema node and TestGenerationContext. Output: a (possibly empty) sequence of RuleValue instances. Errors: rules should avoid throwing; provider wrappers will convert exceptions to failures. Determinism: rule output order must be stable for identical inputs.

Inheritors

Functions

Link copied to clipboard
abstract fun apply(schema: Schema<*>, context: TestGenerationContext): Sequence<RuleValue>

Applies the rule to the provided schema within the context.

Link copied to clipboard
abstract fun getRuleName(): String

Provides a short, human-readable rule name used in composed descriptions.