-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
as: Abstract percentages and concentration parsing
These kind of of validation checks are so common and might appear even more as the schema grows. In the same way that definitions are used in the JSON schema for defining these types, here I've abstracted them to separate functions to facilitate the maintenance down the road. I've also added some test to increase coverage and explicitly test the latest additions.
- Loading branch information
1 parent
66a208d
commit 855b3ba
Showing
2 changed files
with
86 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters