Remove the nullable transformation for the config schema.

This commit is contained in:
Quentin Gliech
2025-11-07 11:08:28 +01:00
parent 889ead8eaa
commit d0a5a1406b
2 changed files with 368 additions and 223 deletions

View File

@@ -4,15 +4,10 @@
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
// Please see LICENSE files in the repository root for full details.
use schemars::{
generate::SchemaSettings,
transform::{AddNullable, RecursiveTransform},
};
use schemars::generate::SchemaSettings;
fn main() {
let generator = SchemaSettings::draft07()
.with_transform(RecursiveTransform(AddNullable::default()))
.into_generator();
let generator = SchemaSettings::draft07().into_generator();
let schema = generator.into_root_schema_for::<mas_config::RootConfig>();
serde_json::to_writer_pretty(std::io::stdout(), &schema).expect("Failed to serialize schema");

File diff suppressed because it is too large Load Diff