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

Conversion library for transforming Mongoose schema objects into Swagger schema definitions.

Results 25 mongoose-to-swagger issues
Sort by recently updated
recently updated
newest added

Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.0.10 to 6.4.6. Release notes Sourced from mongoose's releases. 6.4.6 / 2022-07-20 fix(schema): disallow setting proto when creating schema with dotted properties #12085 fix(document): avoid mutating original...

dependencies

`const userSchema = mongoose.Schema({ movies_ids: Array })` When specifying the field as "Array", I get this error: ``` const arraySchema = Array.isArray(value) ? value[0] : value.type[0]; ^ TypeError: Cannot read...

Hi. I found the bug when nested fields in the schema are not omitted, for example: `const User = mongoose.model("User", { name: { type: String }, phone: { type: String...

bug

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1. Release notes Sourced from pathval's releases. v1.1.1 Fixes a security issue around prototype pollution. Commits db6c3e3 chore: v1.1.1 7859e0e Merge pull request #60 from...

dependencies

It looks like the algorithm can't differentiate a field named description from the attribute description. I have a model like this: ``` //... more properties before here date: { type:...

Hi there, > By default, description, enum, and required fields are extracted from the mongoose schema definitions and placed into the correspoding swagger properties definitions. The problem I encountered is...

Hiya, Not sure if I have missed something or not but I seem to only be able to get Swagger 2.0 out of the code. have I missed a config...

Sorry for my ignorance, but how can I exclude a specific field from being exported? In my case, I want exclude the "_id" field because it's automatically generated. Is it...

Problem occurs when setting Schema option ["typeKey"](https://mongoosejs.com/docs/guide.html#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...