-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature / Extra validation in the model runtime (#270)
* Perform default value encoding for model parameters as part of the static API in define_parameter * Extra validation capabilities in api guard * Move type validation logic into a new module * Make RuntimeHookImpl use validation module directly * Remove remaining references to ApiGuard * Rename static API hook * Update tests after renaming static API hook * Change return type of define_attributes in model API * Add staticAttributes to model definition, for attributes defined in code * Use a single scan_model method and return staticAttributes on model_def * Make ImportModelFunc and ImportAttrsFunc use the new scan_model semantics * Fix unit test after update * Move model validation into the validation module * Fix scan_model in dev mode translator * Quick validation of identifiers in scanned model definitions * Use \A \Z style to match start/end of string in runtime validators * Fixes in data round trip test model
- Loading branch information
1 parent
a516d5f
commit dd9d5d9
Showing
21 changed files
with
625 additions
and
454 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
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
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
Oops, something went wrong.