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.
The below exception
when the following method is used
var generator = new JsonSchemaGenerator(options.SchemaOptions); jsonSchemaGenerator.Generate(payloadType, schemaResolver)
where the payload has the below propertypublic 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.