Dahomey.Json icon indicating copy to clipboard operation
Dahomey.Json copied to clipboard

Is there a proper way to extend JsonDiscriminatorAttribute?

Open plamber opened this issue 3 years ago • 0 comments

Hello, we have the necessity to extend the JsonDiscriminatorAttribute class with additional properties that we would like to read in the TryRegisterType method of a custom IDiscriminatorConvention.

The aim is to pass some additional attribute values and take decisions in the TryRegisterType method.

Do you have some suggestions how this could be achieved?

Thank you, Patrick

plamber avatar Dec 20 '21 08:12 plamber