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
I need to be able to leverage the polymorphism features of Mongoose (discriminators) to create schemas that inherit from one another (example: Contract, SalesContract, PurchaseContract)
Enhance the model and api generators to support discriminators. Leverage Swagger's support of OneOf for generation of api and documentation.
There are unfortunately no acceptable alternatives at the moment.
Btw, thank you for this awesome library, it's a true time saver.
Cheers,
Anthony
The text was updated successfully, but these errors were encountered:
Does not use swagger OneOf since it is not supported in hapi-swagger, however most of the documentation should be taken care of by rest-hapi directly.
The discriminatorKey property is automatically queryable, which could result in useful filtering of parent models. Ex: with parent model: contractand child models: salesContract and purchaseContract, the following query would return all child model documents but not parent model documents (assuming the discriminatorKey is kind): http://localhost:8080/contract?kind=salesContract&kind=purchaseContract
I need to be able to leverage the polymorphism features of Mongoose (discriminators) to create schemas that inherit from one another (example: Contract, SalesContract, PurchaseContract)
Enhance the model and api generators to support discriminators. Leverage Swagger's support of OneOf for generation of api and documentation.
There are unfortunately no acceptable alternatives at the moment.
Btw, thank you for this awesome library, it's a true time saver.
Cheers,
Anthony
The text was updated successfully, but these errors were encountered: