CDLUC3 / dmphub

Simple metadata repository for networked DMPs
MIT License
3 stars 1 forks source link

Lambda - JSON validator #79

Closed briri closed 2 years ago

briri commented 2 years ago

Build a Lambda function that validates incoming JSON

It should be able to handle the full DMP JSON as well as the versions for updating/adding funding and adding related_identifiers

briri commented 2 years ago

Opted to make this one a gem since the code needs to be run synchronously from other Lambdas.

Code lives here: https://github.com/CDLUC3/dmphub-v2/tree/main/gems/dmp-json_validator

The gem offers 3 modes:

Gem includes a full suite of tests and documentation.

briri commented 2 years ago

Verified that the postDMP is able to use the gem from RubyGems: https://rubygems.org/gems/dmp-json_validator