mongoose-to-swagger
mongoose-to-swagger copied to clipboard
Schema option "typeKey" is handled incorrectly
Problem occurs when setting Schema option "typeKey" with non "type" value. Seems that "type" is hardcoded in m2s for obtaining SchemaTypes.
Probably would be better to use schema.options.typeKey reference instead of hardcoded "type".