Skip to content

Commit

Permalink
remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-2002 committed Dec 19, 2024
1 parent a40ea01 commit 3275dd5
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/json_schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -920,25 +920,6 @@ mod tests {
"username@123.123.123.12345", // invalid IP format
]
),
// ==========================================================
// URI Format
// ==========================================================
(
r#"{"title": "Foo", "type": "string", "format": "uri"}"#,
URI,
vec![
"http://example.com",
"https://example.com/path?query=param#fragment",
"ftp://ftp.example.com/resource",
"urn:isbn:0451450523",
],
vec![
"http:/example.com", // missing slash
"htp://example.com", // invalid scheme
"http://", // missing host
"example.com", // missing scheme
],
),
] {
let json: Value = serde_json::from_str(schema).expect("Can't parse json");
let result = to_regex(&json, None).expect("To regex failed");
Expand Down

0 comments on commit 3275dd5

Please sign in to comment.