Skip to content

Commit

Permalink
Test that uri format scheme is validated for allowed chars
Browse files Browse the repository at this point in the history
This is simple to implement.

scheme      = ALPHA *( ALPHA / DIGIT / + / - / . )
  • Loading branch information
ChALkeR committed Jul 20, 2020
1 parent dee8ef7 commit 37189ae
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/draft2019-09/optional/format/uri.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
"description": "an invalid URI with spaces and missing scheme",
"data": ":// should fail",
"valid": false
},
{
"description": "an invalid URI with comma in scheme",
"data": "bar,baz:foo",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft4/optional/format/uri.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
"description": "an invalid URI with spaces and missing scheme",
"data": ":// should fail",
"valid": false
},
{
"description": "an invalid URI with comma in scheme",
"data": "bar,baz:foo",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft6/optional/format/uri.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
"description": "an invalid URI with spaces and missing scheme",
"data": ":// should fail",
"valid": false
},
{
"description": "an invalid URI with comma in scheme",
"data": "bar,baz:foo",
"valid": false
}
]
}
Expand Down
5 changes: 5 additions & 0 deletions tests/draft7/optional/format/uri.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@
"description": "an invalid URI with spaces and missing scheme",
"data": ":// should fail",
"valid": false
},
{
"description": "an invalid URI with comma in scheme",
"data": "bar,baz:foo",
"valid": false
}
]
}
Expand Down

0 comments on commit 37189ae

Please sign in to comment.