Expand description
Schema validation logic for MockForge
Structs§
- Validation
Result - Validation result with detailed error information
Enums§
- Validator
- Schema validator for different formats
Functions§
- sanitize_
header_ value - Sanitize header values to prevent header injection attacks
- sanitize_
html - Sanitize HTML to prevent XSS attacks
- sanitize_
json_ string - Sanitize JSON string values to prevent JSON injection
- sanitize_
sql - Sanitize SQL input to prevent SQL injection
- validate_
command_ arg - Validate command arguments to prevent command injection
- validate_
json_ schema - Validate JSON data against a JSON Schema
- validate_
openapi - Validate OpenAPI spec compliance
- validate_
openapi_ operation - Validate data against a specific OpenAPI operation schema
- validate_
openapi_ operation_ security - Validate security for a specific OpenAPI operation
- validate_
openapi_ security - Validate OpenAPI security requirements
- validate_
protobuf - Validate Protobuf message against schema
- validate_
protobuf_ message - Validate protobuf data against a specific message descriptor
- validate_
protobuf_ with_ type - Validate protobuf data with explicit message type name
- validate_
safe_ path - Validate and sanitize file paths to prevent path traversal attacks
- validate_
url_ safe - Validate URL to prevent SSRF (Server-Side Request Forgery) attacks