papyrus
papyrus copied to clipboard
Path parameter in filename not working
Calling
@GET("/cask/:name.json")
func cask(name: String) async throws -> Cask
with name: "iterm2" tries to request /cask/:name.json?name=iterm2 instead of /cask/iterm2.json, as expected.
Am I misunderstanding the parameter syntax?
Thanks for the report @aleksrutins - this is because it's literally looking for a parameter named name.json to replace - but that obviously doesn't make sense!
Working on a fix.