Commit cbc1877
Fix empty fragment and query string being invalid (#412)
* Fix empty fragment being invalid
According to RFC 3986, URI fragment could be empty. The previous regexp
was only validating non empty fragment, resulting false positive URI
invalidation
refs #411
* Fix empty query string
As fragment, query string could be empty (so leading `?` but nothing
after.
refs #411
Co-authored-by: Vincent Maurin <[email protected]>1 parent 751f436 commit cbc1877
File tree
2 files changed
+16
-1
lines changed- src
- main/java/com/networknt/schema
- test/resources/draft4/optional
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
199 | 214 | | |
200 | 215 | | |
201 | 216 | | |
| |||
0 commit comments