-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[config-system] Validator rewrite: Use jsonschema #576
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1f22f03
Add a JSON schema for the convergence_strategy property.
ftsamis a072b78
Add an example json schema for the quantity_range_sampled type.
ftsamis b6467b5
Add the complete JSON schema equivalent to tardis_config_definition.yml
ftsamis 1ae9996
Split the config schema to multiple sub-schemas.
ftsamis 8ee81b4
Allow integers in exponential/decimal format. Disallow additional pro…
ftsamis 1573fe4
Allow additional properties in model.abundances.uniform, so it is pos…
ftsamis 58c9258
Add exponent as a property for exponential density (adapt #571).
ftsamis 0519f4f
Add default empty values to non-mandatory objects
ftsamis 1a1520b
setup.py: Add tardis/io/schemas in package data.
ftsamis da2d387
io/tests/test_config_reader.py: Remove test_custom_yaml_loader
ftsamis cd812e5
io/tests/test_configuration_namespace.py: Remove the unused config_va…
ftsamis 2c8fc4c
io/config_validator.py: Rewrite the entire module to use jsonschema
ftsamis f2abb1c
Convert no_of_packets and last_no_of_packets to int
ftsamis 2cd9832
Use ducktyping instead of checking if spectrum_list is a dict.
ftsamis 001abe7
Make validate_dict/validate_yaml have a default argument value for sc…
ftsamis d59c357
Add 'damped' as the default value for convergence_strategy in the sch…
ftsamis 60d1d1d
Remove 'tardis/data/tardis_config_definition.yml' and all the referen…
ftsamis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks complicated, why not
try/except
?