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

Behavior of pathParamString and pathParamAliasString's empty cases is unclear #300

Open
sfackler opened this issue Jan 8, 2020 · 0 comments

Comments

@sfackler
Copy link
Member

sfackler commented Jan 8, 2020

What happened?

The path param client tests include two cases that generate an empty path segment:
https://github.com/palantir/conjure-verification/blob/develop/master-test-cases.yml#L791
https://github.com/palantir/conjure-verification/blob/develop/master-test-cases.yml#L799

The client I'm working on rendered those paths as /single-path-param/pathParamString/0/ and /single-path-param/pathParamAliasString/0/, but those 404'd on the verification server.

What did you want to happen?

What is the expected behavior here? The wire spec doesn't have any discussion of special casing empty path params, and the trailing / is what I'd expect this to end up with.

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

Successfully merging a pull request may close this issue.

1 participant