Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator - validate URIs #208

Open
lilleyse opened this issue Jul 27, 2020 · 1 comment
Open

Validator - validate URIs #208

lilleyse opened this issue Jul 27, 2020 · 1 comment

Comments

@lilleyse
Copy link
Contributor

URIs in tileset JSON should be validated against https://tools.ietf.org/html/rfc3986#section-2.1.

This means a tile uri like My+tile.b3dm is not valid. Instead it should be My%2Btile.b3dm

@mramato
Copy link
Contributor

mramato commented Jul 27, 2020

Looking at this closer, I think My+tile.b3dm should technically be okay, My tile.b3dm would have to be My%20tile.b3dm though. This is the difference between encodeURI and encodeURIComponent. Though we should double check everything when we go to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants