Commit 9b476b4
committed
Strip empty fragments when directly looking up a resource.
This isn't necessarily 100% 'nice feeling', but early versions
of JSON Schema used URIs with empty fragments as their $ids, and
even though later versions don't, and future versions may even
make this an error, a downstream library (including jsonschema)
is likely to copy these $ids exactly as-is and expect the resource
to be retrievable, despite the last commit making some of this
behavior JSON Schema-specific. We may revisit this all later if/when
it turns out to matter.
Refs: python-jsonschema/jsonschema#10641 parent 90665d6 commit 9b476b4
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
366 | 368 | | |
367 | 369 | | |
368 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
| |||
0 commit comments