Expand description
JSON Schema generation for MockForge configuration files
This crate provides functionality to generate JSON Schema definitions
from MockForge’s configuration structs, enabling IDE autocomplete and
validation for mockforge.yaml, mockforge.toml, persona files, and blueprint files.
Structs§
- Validation
Result - Validation result for config file validation
Functions§
- detect_
schema_ type - Auto-detect schema type from file path or content
- generate_
all_ schemas - Generate all schemas and return them as a map
- generate_
blueprint_ schema - Generate JSON Schema for Blueprint metadata
- generate_
config_ schema - Generate JSON Schema for MockForge ServerConfig (main config)
- generate_
config_ schema_ json - Generate JSON Schema and return as a formatted JSON string
- generate_
persona_ schema - Generate JSON Schema for Persona configuration
- generate_
reality_ schema - Generate JSON Schema for Reality configuration
- validate_
config_ file - Validate a config file against its corresponding JSON Schema