Add the overrideSettings parameter

This commit is contained in:
Mubelotix
2025-07-01 11:02:42 +02:00
parent f4bb6cbca8
commit efd5fd96cc
4 changed files with 65 additions and 28 deletions

View File

@ -84,8 +84,8 @@ async fn export(
let indexes = match indexes {
Some(indexes) => indexes
.into_iter()
.map(|(pattern, ExportIndexSettings { filter })| {
(pattern, DbExportIndexSettings { filter })
.map(|(pattern, ExportIndexSettings { filter, override_settings })| {
(pattern, DbExportIndexSettings { filter, override_settings })
})
.collect(),
None => BTreeMap::from([(
@ -179,4 +179,8 @@ pub struct ExportIndexSettings {
#[serde(default)]
#[deserr(default, error = DeserrJsonError<InvalidExportIndexFilter>)]
pub filter: Option<Value>,
#[schema(value_type = Option<bool>, example = json!(true))]
#[serde(default)]
#[deserr(default, error = DeserrJsonError<InvalidExportIndexOverrideSettings>)]
pub override_settings: bool,
}