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

Unable to generate document when XmlElement[] is a property of the class #1695

Open
thompson-tomo opened this issue Apr 23, 2024 · 0 comments

Comments

@thompson-tomo
Copy link

thompson-tomo commented Apr 23, 2024

The below exception

The JSON property 'ItemOf' is defined multiple times on type 'System.Xml.XmlAttributeCollection'.

when the following method is used
var generator = new JsonSchemaGenerator(options.SchemaOptions); jsonSchemaGenerator.Generate(payloadType, schemaResolver)
where the payload has the below property

public System.Xml.XmlElement[] Any;

On further testing the below has not helped either
_options.SchemaOptions.ExcludedTypeNames = new[] { nameof(System.Xml.XmlElement), };

Note i am attempting to use Saunter, to generate the documentation but am failing due to that property. V11 of the library is in usage.

Further troubleshooting has identified that in my case the excludedtypes is not processed in this flow hence my issue.

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

No branches or pull requests

1 participant