Closed artreven closed 2 years ago
Hey there, sorry for the way too late reply, I had my notification settings for this repo set wrong and only saw your issue now :slightly_frowning_face: (This repo doesn't get that much traffic...)
It should work if you use separate schemas instead of the JsonLDAnnotation.
The issue is that when using JsonLDAnnotation
we create *Schema classes on the fly, but in the case of inheritance, we weren't inheriting from parent schema classes.
I've opened a PR that should fix this: https://github.com/SwissDataScienceCenter/calamus/pull/70
Can you test if that works for you?
thank you @Panaetius ! Sorry, did not have time to work on this topic lately.
Thanks for this great package!
I tried defining some hierarchy of class using
metaclass=JsonLDAnnotation
and noticed that fields are not inherited. Here is a minimal example to reproduce the problem: