From: Jason Ish Date: Thu, 26 Jan 2023 20:37:54 +0000 (-0600) Subject: schema: add regular expression for tls date format X-Git-Tag: suricata-7.0.0-rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef48c5064f3f9bc326559e8bd16be8e51b2f9fc3;p=thirdparty%2Fsuricata.git schema: add regular expression for tls date format --- diff --git a/etc/schema.json b/etc/schema.json index 2334c48708..b59a46e894 100644 --- a/etc/schema.json +++ b/etc/schema.json @@ -5374,10 +5374,10 @@ "type": "string" }, "notafter": { - "type": "string" + "$ref": "#/$defs/tls_date" }, "notbefore": { - "type": "string" + "$ref": "#/$defs/tls_date" }, "serial": { "type": "string" @@ -5398,10 +5398,10 @@ "type": "string" }, "notafter": { - "type": "string" + "$ref": "#/$defs/tls_date" }, "notbefore": { - "type": "string" + "$ref": "#/$defs/tls_date" }, "serial": { "type": "string" @@ -5519,6 +5519,11 @@ } }, "additionalProperties": false + }, + "tls_date": { + "$comment": "Definition for TLS date formats", + "type": "string", + "pattern": "^[1-2]\\d{3}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$" } } }