You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add a custom JsonConverter to multiple properties, only the callback for the last property is invoked. It is invoked for each property with a custom JsonConverter.
Reproduction Steps
Create two classes C1 and C2
Assign a custom JsonConverter to each of these classes
Create another class named Test containing a property of each C1 and C2
Register a callback to JsonSchemaExporterOptions.TransformSchemaNode
Description
I expect JsonSchemaExporterOptions.TransformSchemaNode to be invoked once for each property of a class. The
JsonSchemaExporterContext
parameter should be set to the property.When I add a custom
JsonConverter
to multiple properties, only the callback for the last property is invoked. It is invoked for each property with a customJsonConverter
.Reproduction Steps
C1
andC2
JsonConverter
to each of these classesTest
containing a property of eachC1
andC2
JsonSchemaExporterOptions.TransformSchemaNode
context.PropertyInfo
andcontext.TypeInfo
Types
Converters
Main
Expected behavior
I expect to see one console message for each property:
Actual behavior
The callback is invoked two times with the context of property
Test.C2
:Removing one or both of the custom
JsonConverters
will fix this issue.Regression?
No response
Known Workarounds
No response
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: