adobe-client-data-layer
adobe-client-data-layer copied to clipboard
Validator
Description
- Adds validation framework to validate events and data pushed to ACDL using JSON schema.
- This should be used only during development of a project. Please do not include the validation on a production site.
Motivation and Context
- Improve consistency of events and data.
How Has This Been Tested?
- See the example in the examples folder.
Screenshots (if appropriate):
Types of changes
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [X] I have signed the Adobe Open Source CLA.
- [X] My code follows the code style of this project.
- [X] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [X] I have read the CONTRIBUTING document.
- [ ] I have added tests to cover my changes.
- [X] All new and existing tests passed.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.22%. Comparing base (
98fd622
) to head (b571d0d
).
Additional details and impacted files
@@ Coverage Diff @@
## parcel-build #156 +/- ##
=============================================
Coverage 99.22% 99.22%
=============================================
Files 11 11
Lines 257 257
Branches 63 63
=============================================
Hits 255 255
Misses 2 2
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.