guzzle / uri-template

MIT License
144 stars 8 forks source link

[RFC] Handling of bad templates #13

Closed GrahamCampbell closed 3 years ago

GrahamCampbell commented 4 years ago

The current spec recommends explicitly rejecting templates of invalid syntax, and indeed there are tests to check this happens. We currently don't do that. Should we bother? How hard would this be to do correctly?

GrahamCampbell commented 4 years ago

And is this something we want before version 1.0.0?

GrahamCampbell commented 4 years ago

Could this be implemented as simply as by checking for invalid characters in the output? Are there any cases we could miss?