Discriminator support
Opened this issue · 0 comments
rjombo commented
Hello, it would be nice to have discriminator support in papr like in mongoose. It might be possible because $jsonSchema supports match for one of specified schemas with keyword "oneOf".
https://www.mongodb.com/docs/v5.0/reference/operator/query/jsonSchema/#mongodb-query-op.-jsonSchema
https://mongoosejs.com/docs/discriminators.html