Skip to content

Add support for polymorphism (discriminators) #174

@adupre

Description

@adupre

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions