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}$" } } }