diff --git a/crates/config/src/sections/secrets.rs b/crates/config/src/sections/secrets.rs index 2027a8a5a..341ea7150 100644 --- a/crates/config/src/sections/secrets.rs +++ b/crates/config/src/sections/secrets.rs @@ -59,6 +59,7 @@ pub enum Encryption { struct EncryptionRaw { /// File containing the encryption key for secure cookies. #[schemars(with = "Option")] + #[serde(skip_serializing_if = "Option::is_none")] encryption_file: Option, /// Encryption key for secure cookies. @@ -68,6 +69,7 @@ struct EncryptionRaw { example = "example_secret" )] #[serde_as(as = "Option")] + #[serde(skip_serializing_if = "Option::is_none")] encryption: Option<[u8; 32]>, } diff --git a/docs/config.schema.json b/docs/config.schema.json index 102857999..6867dd8d2 100644 --- a/docs/config.schema.json +++ b/docs/config.schema.json @@ -1530,7 +1530,6 @@ }, "encryption": { "description": "Encryption key for secure cookies.", - "default": null, "examples": [ "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" ],