mirror of
https://github.com/lune-org/lune.git
synced 2025-01-10 13:19:11 +00:00
10 lines
338 B
Rust
10 lines
338 B
Rust
|
use anyhow::{Context, Result};
|
||
|
use serde_yaml::Value as YamlValue;
|
||
|
|
||
|
use super::doc::DocumentationVisitor;
|
||
|
|
||
|
pub fn generate_from_type_definitions(contents: &str) -> Result<String> {
|
||
|
let _visitor = DocumentationVisitor::from_definitions(contents)?;
|
||
|
serde_yaml::to_string(&YamlValue::Null).context("Failed to encode docs as json")
|
||
|
}
|