chore(deps): bump schemars to 1.1

This commit is contained in:
LGUG2Z
2025-12-20 22:04:38 -08:00
parent 90271f1f99
commit 1cb8ed7f10
13 changed files with 8810 additions and 65848 deletions
+2 -9
View File
@@ -114,15 +114,8 @@ fn main() -> color_eyre::Result<()> {
#[cfg(feature = "schemars")]
if opts.schema {
let settings = schemars::r#gen::SchemaSettings::default().with(|s| {
s.option_nullable = false;
s.option_add_null_type = false;
s.inline_subschemas = true;
});
let generator = settings.into_generator();
let socket_message = generator.into_root_schema_for::<KomobarConfig>();
let schema = serde_json::to_string_pretty(&socket_message)?;
let bar_config = schemars::schema_for!(KomobarConfig);
let schema = serde_json::to_string_pretty(&bar_config)?;
println!("{schema}");
std::process::exit(0);