Skip to content

[BUG][SCALA-AKKA] Fix scala-akka enum generation #9987

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

Closed
5 of 6 tasks
setarator opened this issue Jul 20, 2021 · 1 comment · Fixed by #21320
Closed
5 of 6 tasks

[BUG][SCALA-AKKA] Fix scala-akka enum generation #9987

setarator opened this issue Jul 20, 2021 · 1 comment · Fixed by #21320

Comments

@setarator
Copy link

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Scala Akka client generator generates empty case class instead of enum for named (i.e., top-level) enum models.

case class PetType (
) extends ApiModel
openapi-generator version

5.2.0

OpenAPI declaration file content or url
...
components:
  schemas:
    PetType:
      enum:
      - CAT
      - DOG
      - FROG
      type: string
...
Generation Details

Generator: scala-akka

Suggest a fix

PR to follow

@bjolletz
Copy link
Contributor

The same problem exists for scala-akka-http-server.

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

Successfully merging a pull request may close this issue.

2 participants