Consistenct issue when calling set_extract_schemas
tomas789 opened this issue · 1 comments
tomas789 commented
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.
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.
Wicpar commented
Schemas seem to be correct in both cases, you have functions to control generation settings from aide::gen::*