Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #9473
Closed
Open
Issue created May 13, 2021 by Administrator@rootContributor

[REQ][swift5] Add config flag to control Hashable conformance behavior

Created by: fl034

Is your feature request related to a problem? Please describe.

In v5.1.1 https://github.com/OpenAPITools/openapi-generator/pull/9166 introduced a new default behavior that adopts Hashable for every model via synthetization. That way custom implementations won't be called anymore.

Describe the solution you'd like

After talking with @4brunu we decided that a config flag to control the behavior in general would be good. On model level you can always use the x-swift-hashable: true to enable Hashable conformance.

We should discuss if the feature should be enabled or disabled as default.

Describe alternatives you've considered

Multiple alternatives would be possible

  • Revert https://github.com/OpenAPITools/openapi-generator/pull/9166
  • Add documentation for x-swift-hashable (I couldn't find it anywhere)
Assignee
Assign to
Time tracking