Skip to content

Commit

Permalink
Tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
eshu committed Dec 9, 2023
1 parent 9ace55c commit 28bddd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ object OpenAPIGenSpec extends ZIOSpecDefault {
private val queryParamEndpoint =
Endpoint(GET / "withQuery")
.in[SimpleInputBody]
.query(QueryCodec.paramStr("query"))
.query(QueryCodec.query("query"))
.out[SimpleOutputBody]
.outError[NotFoundError](Status.NotFound)

Expand Down Expand Up @@ -887,7 +887,7 @@ object OpenAPIGenSpec extends ZIOSpecDefault {
HttpCodec
.content[SimpleInputBody] ?? Doc.p("simple input"),
)
.query(QueryCodec.paramStr("query"))
.query(QueryCodec.query("query"))
.outCodec(
HttpCodec
.content[SimpleOutputBody] ?? Doc.p("simple output") |
Expand Down

0 comments on commit 28bddd5

Please sign in to comment.