Skip to main content

Module validate_contracts

Module validate_contracts 

Source
Expand description

validate:contracts command - Validate Inertia frontend/backend prop contracts

Compares Rust InertiaProps structs with TypeScript interfaces to detect:

  • Missing fields in either direction
  • Type mismatches between Rust and TypeScript
  • Nullability mismatches (Option vs required)

Structs§

ContractValidationResult
Result of contract validation
Mismatch
A mismatch between frontend and backend
PropField
A single field in props
PropsInfo
Information about props from either Rust or TypeScript
RouteValidation
Validation result for a single route

Enums§

MismatchKind
Type of mismatch
ValidationStatus
Validation status for a route

Functions§

execute
Execute contract validation
run
Main entry point for the validate:contracts command