use schemars::schema_for; include!("src/lib.rs"); fn main() { // Generate the configuration JSON schema let config_schema = schema_for!(TropobaseConfiguration); let config_schema_output = serde_json::to_string_pretty(&config_schema).unwrap(); const SCHEMA_DIR: &str = "schemas"; // Create the schema directory if it doesn't exist std::fs::create_dir_all(SCHEMA_DIR).unwrap(); // Write the schema to a file std::fs::write( format!("{}/configuration.json", SCHEMA_DIR), config_schema_output, ) .unwrap(); }