martian icon indicating copy to clipboard operation
martian copied to clipboard

url: error on paths missing leading slash for JSON APIs

Open bramhaghosh opened this issue 9 years ago • 1 comments

When using the url.Filter, when the path is malformed (does not have a leading slash), Martian silently ignores it.

bramhaghosh avatar Dec 21 '15 20:12 bramhaghosh

If we have to handle this I would rather it return an error than silently change user input. What about the other parts of the URL? If we want this validation behavior it should probably extend to any/all modifiers that deal with URLs.

admtnnr avatar Dec 23 '15 20:12 admtnnr