Skip to content

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

@s-nel

Description

@s-nel
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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions