Skip to content

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

@setarator

Description

@setarator

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

Activity

bjolletz

bjolletz commented on Dec 12, 2024

@bjolletz
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @bjolletz@setarator

      Issue actions

        [BUG][SCALA-AKKA] Fix scala-akka enum generation · Issue #9987 · OpenAPITools/openapi-generator