mongoose-to-swagger icon indicating copy to clipboard operation
mongoose-to-swagger copied to clipboard

Schema option "typeKey" is handled incorrectly

Open akhudushin opened this issue 4 years ago • 0 comments

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".

akhudushin avatar Apr 24 '20 22:04 akhudushin