Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude additional properties with JsonExtensionData #91

Open
sindizzy opened this issue May 4, 2024 · 0 comments
Open

Exclude additional properties with JsonExtensionData #91

sindizzy opened this issue May 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sindizzy
Copy link

sindizzy commented May 4, 2024

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

@sindizzy sindizzy added the bug Something isn't working label May 4, 2024
@sindizzy sindizzy changed the title Exclude additional properties Exclude additional properties with JsonExtensionData May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant