fraiseql_cli/commands/validate.rs
1//! Schema validation command
2//!
3//! Validates schema.json without compilation
4
5use anyhow::Result;
6
7/// Run the validate command
8///
9/// This is just a wrapper around compile with check=true
10///
11/// # Arguments
12///
13/// * `input` - Path to schema.json file to validate
14pub async fn run(input: &str) -> Result<()> {
15 // Validate is just compile --check (no database validation)
16 super::compile::run(input, None, None, Vec::new(), Vec::new(), Vec::new(), "unused", true, None)
17 .await
18}