Crate mockforge_schema

Crate mockforge_schema 

Source
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§

ValidationResult
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