OpenAPITools / OpenAPITools/openapi-generator
[Scala-Akka-Http] `ActorMaterializer` is deprecated
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
openapi-generator version
5.3.0
OpenAPI declaration file content or url
Any
Command line used for generation
Steps to reproduce
- Generate any open api spec with the Scala Akka HTTP client generator
- Notice that the
ApiInvoker.scalauses the deprecatedActorMaterializerthat has been deprecated sinceakka-http2.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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with modules/openapi-generator/src/main/resources/scala-akka-client/apiInvoker.mustache around line 84 and inspect how the Scala Akka HTTP client creates its materializer. Generate a client from any OpenAPI specification and verify that ApiInvoker.scala uses Materializer(system) without the reported ActorMaterializer deprecation warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100