-
-
Notifications
You must be signed in to change notification settings - Fork 479
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I converted this spec to JSON and tried to generate endpoints, but encountered the following errors. There may be some edge cases left to be sure the endpoint generation is fully functional.
Exception in thread "main" java.lang.Exception: Array query parameters are not supported
at zio.http.gen.openapi.EndpointGen.zio$http$gen$openapi$EndpointGen$$schemaToQueryParamCodec(EndpointGen.scala:709)
at zio.http.gen.openapi.EndpointGen$$anonfun$2.applyOrElse(EndpointGen.scala:409)
at zio.http.gen.openapi.EndpointGen$$anonfun$2.applyOrElse(EndpointGen.scala:402)
at scala.collection.StrictOptimizedIterableOps.collect(StrictOptimizedIterableOps.scala:151)
at scala.collection.StrictOptimizedIterableOps.collect$(StrictOptimizedIterableOps.scala:136)
at scala.collection.immutable.Set$Set1.collect(Set.scala:165)
at zio.http.gen.openapi.EndpointGen.endpoint(EndpointGen.scala:402)
at zio.http.gen.openapi.EndpointGen.$anonfun$fromOpenAPI$8(EndpointGen.scala:354)
at scala.Option.map(Option.scala:242)
at zio.http.gen.openapi.EndpointGen.$anonfun$fromOpenAPI$1(EndpointGen.scala:354)
at scala.collection.StrictOptimizedIterableOps.map(StrictOptimizedIterableOps.scala:100)
at scala.collection.StrictOptimizedIterableOps.map$(StrictOptimizedIterableOps.scala:87)
at scala.collection.immutable.ListMap.map(ListMap.scala:43)
at zio.http.gen.openapi.EndpointGen.fromOpenAPI(EndpointGen.scala:314)
at zio.http.gen.openapi.EndpointGen$.fromOpenAPI(EndpointGen.scala:33)
at example.Main$.delayedEndpoint$example$Main$1(EndpointExamples.scala:81)
at example.Main$delayedInit$body.apply(EndpointExamples.scala:64)
at scala.Function0.apply$mcV$sp(Function0.scala:42)
at scala.Function0.apply$mcV$sp$(Function0.scala:42)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
at scala.App.$anonfun$main$1(App.scala:98)
at scala.App.$anonfun$main$1$adapted(App.scala:98)
at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:619)
at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:617)
at scala.collection.AbstractIterable.foreach(Iterable.scala:935)
at scala.App.main(App.scala:98)
at scala.App.main$(App.scala:96)
at example.Main$.main(EndpointExamples.scala:64)
at example.Main.main(EndpointExamples.scala)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working