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

Attempting to render a template with missing variables should raise an error #133

Open
Robsteranium opened this issue Sep 11, 2020 · 0 comments

Comments

@Robsteranium
Copy link
Contributor

It's possible to render a uri template with a variable that doesn't exist.

The result is that an empty string (nothing) is interpolated into the template.

This is probably never intentional - perhaps having a variable explicitly defined as "" but certainly never an implicit empty string.

We ought to raise an exception e.g.

template variable foo is undefined in template http://example.net/{foo}, available variables: bar, baz

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

No branches or pull requests

1 participant