Skip to content

[Scala] Template missing json4s import #7270

@gmarz

Description

@gmarz
Description

The type annotations introduced in #7086 for ClientResponseReader, specifically this line causes

[error] /snip/StackApi.scala:61: not found: type JValue
[error]   implicit val jvalueReader: ClientResponseReader[JValue] = ClientResponseReaders.JValueReader

I believe because it's missing the required json4s import since we're no longer relying on type inference.

Swagger-codegen version

2.3.0

Swagger declaration file content or url

Any spec should reproduce this, but for completeness I'm using: https://download.elasticsearch.org/cloud/1.1/elastic-cloud-enterprise-API-swagger.json

Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
  -i https://download.elasticsearch.org/cloud/1.1/elastic-cloud-enterprise-API-swagger.json \
  -l scala 

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