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
I am trying to validate (with custom ajv keywords) the uniqueness and existence of specific properties of a mongoose model.
It would be a nice feature to enrich the __processOptions function in types.js with options types: exists: true|false and unique: true|false or enable a optional input of a predefined array of custom options.
Example: required('mongoose-schema-jsonschema')(mongoose, ['unique', 'exists'] )
Very nice work. Thank you.
The text was updated successfully, but these errors were encountered:
I am trying to validate (with custom ajv keywords) the uniqueness and existence of specific properties of a mongoose model.
It would be a nice feature to enrich the __processOptions function in types.js with options types: exists: true|false and unique: true|false or enable a optional input of a predefined array of custom options.
Example: required('mongoose-schema-jsonschema')(mongoose, ['unique', 'exists'] )
Very nice work. Thank you.
The text was updated successfully, but these errors were encountered: