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

Partially expanded templates output #1

Open
btilford opened this issue Mar 4, 2020 · 0 comments
Open

Partially expanded templates output #1

btilford opened this issue Mar 4, 2020 · 0 comments

Comments

@btilford
Copy link
Owner

btilford commented Mar 4, 2020

When partially expanded templates format their output without dropping un-expanded variables it is not a valid URI Template.

const template = UriTemplate.parse('{/seg1,seg2,seg3}')
      .expand({ seg1: 'a', seg3: 'c' });
      .format();

Should output /a{/seg2}/c but outputs /a,seg2/c

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

1 participant