scidata
scidata copied to clipboard
WIP: Re #5 - Parameter schema + refactor for Unit and Value schemas
Work includes:
- Adds the
parameterschema - Refactors the
unitandvalueschemas- more DRY (Don't Repeat Yourself) using the definitions section
- Switches to testing with pytest
- Testing required using "linked" or "chained" schemas (i.e.
context->unit->value->parameter) that arose with creating theparameterschema. Needed scripting withjsonschemapackage, not just CLI - Includes testing valid JSON-LD in
examples/sectionsas well as invalidating "bad" schema found in the tests themselves such as bad values and additional properties that shouldn't be there.
- Testing required using "linked" or "chained" schemas (i.e.
Blocked by: MR #7 needs to be merged first so we can rebase off that work
@stuchalk So this one should be ready except needs MR #7 approved and merged first (will rebase this feature off those changes going in)
This one re-writes the Unit and Value schema based on the need that arose with Parameter schema setup (and only realizing that by creating the tests :grin:)
Pretty happy though, it is checking for valid schema in the examples/sections directory + validating "bad" schema too in the tests.