From bed3bfdcd0b7b406cb072f2bb07c67f4e466110e Mon Sep 17 00:00:00 2001 From: Aakash Thatte Date: Thu, 19 Dec 2024 21:59:18 +0530 Subject: [PATCH] use URI in tests --- src/json_schema/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json_schema/mod.rs b/src/json_schema/mod.rs index af2e5b7..4ec5c7c 100644 --- a/src/json_schema/mod.rs +++ b/src/json_schema/mod.rs @@ -881,7 +881,7 @@ mod tests { // ========================================================== ( r#"{"title": "Foo", "type": "string", "format": "uri"}"#, - r"^(https?|ftp):\/\/([^\s:@]+(:[^\s:@]*)?@)?([a-zA-Z\d.-]+\.[a-zA-Z]{2,}|localhost)(:\d+)?(\/[^\s?#]*)?(\?[^\s#]*)?(#[^\s]*)?$|^urn:[a-zA-Z\d][a-zA-Z\d\-]{0,31}:[^\s]+$", + URI, vec![ "http://example.com", "https://example.com/path?query=param#fragment",