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
@@ -3343,15 +3343,8 @@ if (Get-Command Get-CimInstance -ErrorAction SilentlyContinue) {
SubCommand::StaticConfigSchema => {
#[cfg(feature = "schemars")]
{
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::<StaticConfig>();
let schema = serde_json::to_string_pretty(&socket_message)?;
let static_config = schemars::schema_for!(StaticConfig);
let schema = serde_json::to_string_pretty(&static_config)?;
println!("{schema}");
}
}