-
Notifications
You must be signed in to change notification settings - Fork 29
Allow required, description, and enum to be regular fields if their types are wrong #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,6 +1,6 @@ | ||||||||
{ | ||||||||
"name": "mongoose-to-swagger", | ||||||||
"version": "1.5.0", | ||||||||
"version": "1.5.1", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't bump patch versions for lib maintainers 🙏 |
||||||||
"description": "Conversion library for transforming Mongoose schema objects into Swagger schema definitions.", | ||||||||
"homepage": "", | ||||||||
"author": { | ||||||||
|
@@ -44,7 +44,8 @@ | |||||||
"test:watch": "mocha lib/*.test.js --watch", | ||||||||
"test": "mocha lib/*.test.ts", | ||||||||
"build": "tsc", | ||||||||
"prepublish": "npm run build" | ||||||||
"prepublish": "npm run build", | ||||||||
"preinstall": "npm run build" | ||||||||
Comment on lines
+47
to
+48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
}, | ||||||||
"dependencies": {}, | ||||||||
"license": "MIT", | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JulianKingman Wouldn't a more succinct way to address validity of meta props be to check the non-existence of { type }? This is how mongoose requires overrides of meta props in schema definitions.