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] Template missing json4s import #7270

Closed
gmarz opened this issue Dec 29, 2017 · 0 comments
Closed

[Scala] Template missing json4s import #7270

gmarz opened this issue Dec 29, 2017 · 0 comments

Comments

@gmarz
Copy link
Contributor

gmarz commented Dec 29, 2017

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 
gmarz added a commit to gmarz/swagger-codegen that referenced this issue Dec 29, 2017
wing328 pushed a commit that referenced this issue Jan 7, 2018
* [Scala] Fix missing json4s import

Closes #7270

* Update petstore sample
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