Closed tomas789 closed 8 months ago
There is a slight consistency issue. By default extract_schemas is set to true and schema to SchemaSettings::draft07(). When I call set_extract_schemas(true) I'd expect it to kind of do nothing. But it also sets schema to a different value.
true
schema
SchemaSettings::draft07()
set_extract_schemas(true)
self.schema = SchemaGenerator::new(SchemaSettings::draft07().with(|s| { s.inline_subschemas = false; s.definitions_path = "#/components/schemas/".into(); }));
This leads to a slightly confusing behaviour.
Schemas seem to be correct in both cases, you have functions to control generation settings from aide::gen::*
aide::gen::*
There is a slight consistency issue. By default extract_schemas is set to
true
andschema
toSchemaSettings::draft07()
. When I callset_extract_schemas(true)
I'd expect it to kind of do nothing. But it also setsschema
to a different value.This leads to a slightly confusing behaviour.