kayto 0.1.14

Fast OpenAPI parser that turns imperfect specs into a stable output schema with actionable diagnostics.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[path = "dart/dart.rs"]
pub mod dart;
#[path = "ts/ts.rs"]
pub mod ts;

use crate::parser;
use std::io;
use std::path::Path;

/// Unified generator contract for language backends.
pub trait Generator {
    /// Generates language-specific artifacts from parsed requests into the target output path.
    fn generate(&self, requests: &[parser::Request], output: &Path) -> io::Result<()>;
}