Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added a required key value validation. #19

Merged
merged 1 commit into from
Dec 15, 2015
Merged

Added a required key value validation. #19

merged 1 commit into from
Dec 15, 2015

Conversation

jsdream
Copy link

@jsdream jsdream commented Dec 10, 2015

Fixes #18

  • Updated README.md file.
  • Written tests for required validation.
  • Validation doesn't allow empty string, empty array or empty object. It does allow '0' number value.

- Updated README.md file.
- Written tests for required validation.
- Validation doesn't allow empty string, empty array or empty object. It does allow '0' number value.
@scottwrobinson
Copy link
Owner

Thanks for the PR! From what I can tell it looks good. I'll merge it with some other updates I've done later this week.

Scott

@jsdream
Copy link
Author

jsdream commented Dec 14, 2015

Thanks Scott! I am happy to hear that. Let me know if you find that I've missed something.

Kind Regards,
Vlad

@scottwrobinson scottwrobinson merged commit d232d3c into scottwrobinson:master Dec 15, 2015
scottwrobinson added a commit that referenced this pull request Dec 15, 2015
Conflicts:
	test/document.test.js

Merged PR #19
scottwrobinson added a commit that referenced this pull request Dec 15, 2015
bvkimball pushed a commit to bvkimball/crypsis that referenced this pull request Jan 15, 2016
* upstream/master: (41 commits)
  Bumped version, updated CHANGELOG, and updated README
  Fixed serialization test for MongoDB IDs
  Deprecated 'id' alias on document object for issue scottwrobinson#20
  Removing some inconsistencies with accessing the ID. Partially covers issue scottwrobinson#20
  Consolidated hook code so it can be re-used throughout Document methods
  Moved collectionName method to BaseDocument. Fixes scottwrobinson#26
  Added new ValidationError object, fixed some validation tests, fixed min/max validation, and fixed validation for array of embedded documents
  Fixed issue with running 'canonicalize' tests on travis-ci and bumped version
  Removed unused harmony-reflect dependency, updated CHANGELOG, and bumped version
  Updated CHANGELOG, README, and bumped version
  Removed --harmony-proxies flag from tests now that Proxy isn't used
  Added sanity check to 'required' tests
  Updated PR scottwrobinson#19 to conform to new collection naming
  Changed how you name collections
  Removed need for Proxy and harmony-reflect dependency
  Added a required key value validation.
  Adding .npmignore file
  Moved jshint settings out of package.json and in to .jshintrc file. Updated .gitignore for .jshintrc
  Removed custom harmony-reflect script and adding harmony-reflect as dependency
  Added tests for canonicalizing dates
  ...
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants