Skip to content
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

Support for additionalProperties #28

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

briananderson1222
Copy link
Collaborator

@briananderson1222 briananderson1222 commented Oct 14, 2016

Changes

  • Updated package version
  • Added missing commas around validators
  • Updated license in package to use supported SPDX identifier
  • additionalProperties (which valid in the OpenAPI spec was causing the plugin to crash.
    • This is now handled with propagating the strict option up to the Schema as false so that we can still define these unknown properties for our schema
  • Added ability for the getMongooseProperty() identifier to be attached to a schema object and then appended to the schema when defining it

TODO

  • Add unit tests

@simonguest @paul42

…) was causing the plugin to crash.

- This is now handled with propagating the `strict` option up to the Schema as `false` so that we can still define these unknown properties for our schema
- Added ability for the `getMongooseProperty()` identifier to be attached to a schema object and then appended to the schema when defining it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant