use super::SchemaCatalog;
use anyhow::Context;
impl SchemaCatalog {
#[doc(hidden)]
pub fn from_json(json: &str) -> anyhow::Result<Self> {
let value = serde_json::from_str(json).context("schema catalog JSON is not valid")?;
Self::from_snapshot(
"schema.json",
super::load::parse_snapshot("schema.json", value)?,
)
}
}