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

Support more HTTP methods, keep more details about HTTP matching failures #493

Merged
merged 15 commits into from
Nov 10, 2022
Prev Previous commit
Next Next commit
More verbosity
kubukoz committed Oct 6, 2022
commit 4d5a842040120d2f1456e5efaec71de36a9268e0
6 changes: 5 additions & 1 deletion modules/core/src/smithy4s/http/HttpEndpoint.scala
Original file line number Diff line number Diff line change
@@ -64,7 +64,11 @@ object HttpEndpoint {
)
httpPath <- internals
.pathSegments(http.uri.value)
.toRight(HttpEndpointError("Unable to parse HTTP path template"))
.toRight(
HttpEndpointError(
s"Unable to parse HTTP path template: ${http.uri.value}"
)
)
encoder <- SchemaVisitorPathEncoder(
endpoint.input
.addHints(http)