-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[BUG] [scala-pekko] Array of enums fails to generate valid code #23399
Copy link
Copy link
Open
Labels
Description
Description
72e942f fix was applied for sttp generator. Same problem still occures with scala-pekko.
Tried with all the recent versions and 3.0.4, same issue occures
OpenAPI declaration file content or url
type: object
required:
- id
properties:
id:
type: string
format: uuid
categoryKey:
type: string
templateKey:
type: string
stateFilters:
type: array
items:
type: string
enum:
- state_new
- state_pending
- state_approved
- state_rejected
- state_archivedThis generates invalid class where with typing
case class ConditionalActionGenericForIssue (
id: UUID,
categoryKey: Option[String] = None,
templateKey: Option[String] = None,
stateFilters: Option[ConditionalActionGenericForIssueEnums.Seq[StateFilters]] = None
) extends ApiModel
object ConditionalActionGenericForIssueEnums {
type Seq[StateFilters] = Seq[StateFilters].Value
object Seq[StateFilters] extends Enumeration {
}
}
Reactions are currently unavailable