swaggest / php-json-schema

High definition PHP structures with JSON-schema based validation
MIT License
446 stars 51 forks source link

Proper URL decoding on file:/// references #49

Closed martinhartmann closed 6 years ago

martinhartmann commented 6 years ago

file:/// references are also URIs (as per RFC 8089) so they should also be decoded properly.

Without this patch I can't have a local path reference including a hash # in it. Now local file references can be encoded and used properly, even with directories or files including hashes.

vearutop commented 6 years ago

Interesting, thank you for covering this case. v0.12.3 tagged.