-
Notifications
You must be signed in to change notification settings - Fork 74
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
Changes from 11 commits
2c136fe
048d357
eadbb3a
4d5a842
6e8f004
091e7aa
22f9e17
f543008
b23d5fc
3adbfdb
ede736d
a7a4b6d
94930a6
f72737f
06bedfb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ package internals | |
|
||
import smithy4s.schema._ | ||
|
||
private[smithy4s] class ErrorCodeSchemaVisitor( | ||
private[http] class ErrorCodeSchemaVisitor( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. More narrow visibility scope here - let me know if that makes sense |
||
val cache: CompilationCache[HttpCode] | ||
) extends SchemaVisitor.Cached[HttpCode] | ||
with SchemaVisitor.Default[HttpCode] { compile => | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ class PathSpec() extends munit.FunSuite { | |
.cast( | ||
DummyPath | ||
) | ||
.toTry | ||
.get | ||
.path( | ||
PathParams( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ class Smithy4sCli[Alg[_[_, _, _, _, _]], Op[_, _, _, _, _], F[_]: MonadThrow]( | |
): List[String] = | ||
HttpEndpoint | ||
.cast(endpoint) | ||
.toOption | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: since we're throwing a few lines below, would it be worth it to throw here also rather than just swallow the error? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah lemme do that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually, I don't think so... If The purpose of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do the same in Playground and I've been thinking about it recently: kubukoz/smithy-playground#139 - basically, if protocol-specific interpreters are allowed to prefix URLs, maybe we shouldn't trust the |
||
.map { httpEndpoint => | ||
val path = endpoint.hints | ||
.get(Http) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is set by the project plugin