Skip to content

[BUG] enum issue when using generated dart  #4157

Closed
@boojongmin

Description

@boojongmin

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

I meet a bug when using a generated dart source.

22

because json serializer can't serialize enum type directly.
so I modify code like below image.(add '.value')

a

would you fix this bug?

openapi-generator version

4.1.3

OpenAPI declaration file content or url

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions