Skip to content

Conversation

xavierhd
Copy link

@xavierhd xavierhd commented Dec 10, 2020

Fix #7669 [csharp] Model inheriting Dictionnary set isArrayModel to True.

This change enable the modelGeneric.mustache templates to distinguish between generated type and native dictionary type.

  • "BaseValidate" reference is no longer incorrectly generated in IValidatableObject.Validate().
  • "Override" keyword is no longer added to the ToJson() method.

@mandrean

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: 3.0.0 branch for changes related to OpenAPI spec 3.0. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

…yModel to True.

This change enable the modelGeneric.mustache templates to distinguish between generated type and native dictionary type.
"BaseValidate" reference is no longer incorrectly generated in IValidatableObject.Validate().
"Override" keyword is no longer added to the `ToJson()` method.
@smargoli2
Copy link

Why was this PR never merged? Still dealing with this issue, swagger cli 2.4.28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[csharp] Mustache templates do not distinguish generated and native parent classes
2 participants