Skip to content

Exclude additional properties with JsonExtensionData #91

@sindizzy

Description

@sindizzy

Describe the bug

I have tried a number of options and cannot seem to get the output to exclude additional properties on every single class.

Assemblies affected

Using VS 2022 with extension 1.91

Steps to reproduce

Run a process on any YML file with default options.

Expected result

An option to exclude additional properties on every single class.

Actual result

Additional properties on every single class. Hopefully there is a way to generate this only on those classes that require it. Screenshot below has a node in my YML that does appears to have a property called additionalProperties so for that node I would like the class to be rendered with that property.

Additional detail

Discussed in this post RicoSuter/NSwag#3420

Screenshots

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions