diff --git a/etc/schema.json b/etc/schema.json index 2ba472f5aa..97d5657195 100644 --- a/etc/schema.json +++ b/etc/schema.json @@ -2083,6 +2083,7 @@ "request": { "type": "object", "additionalProperties": false, + "minProperties": 1, "properties": { "error_code": { "type": "string" @@ -2114,6 +2115,7 @@ "response": { "type": "object", "additionalProperties": false, + "minProperties": 1, "properties": { "error_code": { "type": "string" diff --git a/rust/src/http2/logger.rs b/rust/src/http2/logger.rs index c231f599e4..2197d7a83e 100644 --- a/rust/src/http2/logger.rs +++ b/rust/src/http2/logger.rs @@ -270,13 +270,23 @@ fn log_http2(tx: &HTTP2Transaction, js: &mut JsonBuilder) -> Result