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
/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:136
const getFieldsFromMongooseSchema = (schema, options) => {
^
RangeError: Maximum call stack size exceeded
at getFieldsFromMongooseSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:136:37)
at mapSchemaTypeToFieldSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:115:26)
at getFieldsFromMongooseSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:145:23)
at mapSchemaTypeToFieldSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:115:26)
at getFieldsFromMongooseSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:145:23)
at mapSchemaTypeToFieldSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:115:26)
at getFieldsFromMongooseSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:145:23)
at mapSchemaTypeToFieldSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:115:26)
at getFieldsFromMongooseSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:145:23)
at mapSchemaTypeToFieldSchema (/home/node/app/node_modules/mongoose-to-swagger/dist/index.js:115:26)
Node.js v18.16.1
If the schema contains an array of sub-document schemas I'm getting call stack size exceeded.
Example schema:
Can someone try to recreate this?
1.1 mongoose-to-swagger ^1.4.0
1.2 mongoose ^6.0.0
The text was updated successfully, but these errors were encountered: