Skip to main content

Module rule_generator

Module rule_generator 

Source
Expand description

Rule auto-generation engine for MockAI

This module analyzes example request/response pairs and OpenAPI specifications to automatically generate behavioral rules, validation rules, pagination patterns, and state machines.

Structs§

CrudExample
CRUD example for state machine generation
ErrorExample
Error example for learning validation rules
ExamplePair
Example request/response pair for learning
PaginatedResponse
Paginated response example
PaginationRule
Pagination rule inferred from examples
PatternMatch
Pattern match information
RuleExplanation
Rule explanation metadata
RuleGenerator
Rule generator that learns from examples
ValidationRule
Validation rule inferred from examples

Enums§

RuleType
Rule type classification