Skip to content

[BUG][CSHARP][generichost] Support equatable option for all vars for generichost #21646

@alec-petersen

Description

@alec-petersen

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator?
  • 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

When using the now default generichost generator for csharp, if you set equatable to true, it has no effect on output. The .Equals and .GetHashCode methods are not overridden.

openapi-generator version

7.0.14

OpenAPI declaration file content or url

The generated samples show this behavior.

See config here.
See sample here.

Steps to reproduce

You can generate samples on master in whichever environment you work on.

Related issues/PRs

#16106

Suggest a fix

I can take a look into this one. Seems to have to do with the dependency on readOnlyVars.

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