From 8527e9229a94d848cd6ea61699fa4920ba0d2ead Mon Sep 17 00:00:00 2001 From: Alexis Goodfellow Date: Wed, 11 Dec 2024 09:49:31 -0500 Subject: [PATCH] Update schema_issue492_test.go to look for correct DateTime format in error output --- openapi3/schema_issue492_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi3/schema_issue492_test.go b/openapi3/schema_issue492_test.go index 2fdfcbce..1396621e 100644 --- a/openapi3/schema_issue492_test.go +++ b/openapi3/schema_issue492_test.go @@ -46,5 +46,5 @@ info: "name": "kin-openapi", "time": "2001-02-03T04:05:06:789Z", }) - require.ErrorContains(t, err, `Error at "/time": string doesn't match the format "date-time": string doesn't match pattern "^[0-9]{4}-(0[0-9]|10|11|12)-([0-2][0-9]|30|31)T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?(Z|(\+|-)[0-9]{2}:[0-9]{2})?$"`) + require.ErrorContains(t, err, `Error at "/time": string doesn't match the format "date-time": string doesn't match pattern "`+FormatOfStringDateTime+`"`) }