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

[Scala-Akka-Http] ActorMaterializer is deprecated #11047

Open
s-nel opened this issue Dec 6, 2021 · 0 comments
Open

[Scala-Akka-Http] ActorMaterializer is deprecated #11047

s-nel opened this issue Dec 6, 2021 · 0 comments

Comments

@s-nel
Copy link
Contributor

s-nel commented Dec 6, 2021

Description
openapi-generator version

5.3.0

OpenAPI declaration file content or url

Any

Command line used for generation
Steps to reproduce
  1. Generate any open api spec with the Scala Akka HTTP client generator
  2. Notice that the ApiInvoker.scala uses the deprecated ActorMaterializer that has been deprecated since akka-http 2.6.0.
ApiInvoker.scala:94:58
[E]      method apply in object ActorMaterializer is deprecated (since 2.6.0): Use the system wide materializer with stream attributes or configuration settings to change defaults
[E]      L94:   private implicit val materializer: ActorMaterializer = ActorMaterializer()
ApiInvoker.scala:94:38
[E]      class ActorMaterializer in package stream is deprecated (since 2.6.0): The Materializer now has all methods the ActorMaterializer used to have
[E]      L94:   private implicit val materializer: ActorMaterializer = ActorMaterializer()
Related issues/PRs
Suggest a fix/enhancement

We should change the invoker template to use Materializer(system)

private implicit val materializer: ActorMaterializer = ActorMaterializer()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant