OK, I am continuing struggle with custom serializers. I am building my own analog of PolymorphicSerializer for a class which explicitely contatins type of the value and then the value itself. Everything works, but the problem is that if I follow the examples, then the field which contains actual value lacks the descriptor. Is there a way to generate sum-of-types style descriptor for that field?