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§
- Contract
Validation Result - Result of contract validation
- Mismatch
- A mismatch between frontend and backend
- Prop
Field - A single field in props
- Props
Info - Information about props from either Rust or TypeScript
- Route
Validation - Validation result for a single route
Enums§
- Mismatch
Kind - Type of mismatch
- Validation
Status - Validation status for a route