[BUG] Passing {constraints: { additionalProperties: false }} to the CSharpGenerator's generate method still generates an AdditionalProperties property in the model file #2212
Labels
bug
Something isn't working
Describe the bug.
Currently, when I generate C# models from AsyncAPI input and specific I do not want the additional AdditionalProperties property included in the generated model, it does now work:
the output still contains an AdditionalProperties method (which is not in the yaml file)
public Dictionary<string, dynamic>? AdditionalProperties { get; set; }
Expected behavior
that setting additionalProperties: false does not render:
public Dictionary<string, dynamic>? AdditionalProperties { get; set; }
in the generated model file
Screenshots
How to Reproduce
node generate-csharp-models.js
🖥️ Device Information [optional]
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
None
The text was updated successfully, but these errors were encountered: