Empty strings as valid values for URI parameters #72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is my attempt to finish the work started in #71 by @motoyasu-saburi and described in apiaryio/dredd#677 and #70. It turns out this is much larger problem then anticipated. It is a breaking change in how Dredd works and it has many corner cases:
Regarding the last point, e.g. we do not want
/sth/{param}/sth
to work with empty strings, but we do want/sth{?param}
to work with empty strings. I suggest we clearly specify all the corner cases (similar to #71 (review)) first, then write a lot of tests and then let's change the implementation and release the next major version of Dredd.@motoyasu-saburi Thank you very much for bringing the whole thing up. You did awesome load of work. No matter any delays, your contribution in the issues and in the PR you started was a great help in understanding the whole problem and will be eternally carved in the history of Dredd development 🙇