Remove the nullable transformation for the config schema.
This commit is contained in:
@@ -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
Reference in New Issue
Block a user