-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from hubverse-org/ak/fix-required-vals-bug/123
Fix required vals check bug
- Loading branch information
Showing
12 changed files
with
393 additions
and
3 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"schema_version": "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v3.0.1/admin-schema.json", | ||
"name": "SARS-CoV-2 Variant Nowcast Hub", | ||
"maintainer": "jbloggs @ UMass-Amherst", | ||
"contact": { | ||
"name": "Joe blogss", | ||
"email": "[email protected]" | ||
}, | ||
"repository": { | ||
"host": "github", | ||
"owner": "jbloggs", | ||
"name": "variant-nowcast-hub" | ||
}, | ||
"file_format": ["parquet"], | ||
"timezone": "US/Eastern", | ||
"cloud": { | ||
"enabled": false, | ||
"host": { | ||
"name": "aws", | ||
"storage_service": "s3", | ||
"storage_location": "variant-nowcast-hub" | ||
} | ||
} | ||
} |
132 changes: 132 additions & 0 deletions
132
tests/testthat/testdata/hub-now/hub-config/model-metadata-schema.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Schema for SARS-CoV-2 Variant Nowcast Hub model metadata", | ||
"description": "This is the schema for model metadata files, please refer to https://github.com/reichlab/variant-nowcast-hub/blob/main/README.md#model-metadata for more information.", | ||
"type": "object", | ||
"properties": { | ||
"team_name": { | ||
"description": "The name of the team submitting the model", | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"team_abbr": { | ||
"description": "Abbreviated name of the team submitting the model", | ||
"type": "string", | ||
"pattern": "^[a-zA-Z0-9_]+$", | ||
"maxLength": 16 | ||
}, | ||
"model_name": { | ||
"description": "The name of the model", | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"model_abbr": { | ||
"description": "Abbreviated name of the model", | ||
"type": "string", | ||
"pattern": "^[a-zA-Z0-9_]+$", | ||
"maxLength": 16 | ||
}, | ||
"model_version": { | ||
"description": "Identifier of the version of the model, if multiple versions are present.", | ||
"type": "string" | ||
}, | ||
"model_contributors": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"affiliation": { | ||
"type": "string" | ||
}, | ||
"email": { | ||
"type": "string", | ||
"format": "email" | ||
}, | ||
"orcid": { | ||
"type": "string", | ||
"pattern": "^\\d{4}\\-\\d{4}\\-\\d{4}\\-[\\dX]{4}$" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"name", | ||
"affiliation", | ||
"email" | ||
] | ||
} | ||
}, | ||
"website_url": { | ||
"description": "Public facing website for the model", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"repo_url": { | ||
"description": "Repository containing code for the model", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"license": { | ||
"description": "License for use of model output data", | ||
"type": "string", | ||
"enum": [ | ||
"CC0-1.0", | ||
"CC-BY-4.0", | ||
"CC-BY_SA-4.0", | ||
"PPDL", | ||
"ODC-by", | ||
"ODbL", | ||
"OGL-3.0" | ||
] | ||
}, | ||
"citation": { | ||
"description": "One or more citations for this model", | ||
"type": "string", | ||
"examples": ["Gibson GC , Reich NG , Sheldon D. Real-time mechanistic bayesian forecasts of Covid-19 mortality. medRxiv. 2020. https://doi.org/10.1101/2020.12.22.20248736"] | ||
}, | ||
"team_funding": { | ||
"description": "Any information about funding source for the team or members of the team.", | ||
"type": "string", | ||
"examples": ["National Institutes of General Medical Sciences (R01GM123456). The content is solely the responsibility of the authors and does not necessarily represent the official views of NIGMS."] | ||
}, | ||
"methods": { | ||
"description": "A summary of the methods used by this model (5000 character limit). Among other details, this should include details about the joint dependence structure of the model, and across what variables the model draws joint distributions, e.g., across horizons but not horizons and locations.", | ||
"type": "string", | ||
"maxLength": 5000 | ||
}, | ||
"methods_url": { | ||
"description": "A link to a complete write-up of the model specification, with mathematical details. This could be a peer-reviewed article, preprint, or an unpublished PDF or webpage stored at a public url somewhere.", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"data_sources": { | ||
"description": "List or description of data inputs used by the model. For example: NextStrain, GISAID for sequences outside of the U.S., wastewater variant proportions, etc....", | ||
"type": "string" | ||
}, | ||
"ensemble_of_models": { | ||
"description": "Indicator for whether this model is an ensemble of any separate component models", | ||
"type": "boolean" | ||
}, | ||
"ensemble_of_hub_models": { | ||
"description": "Indicator for whether this model is an ensemble specifically of other models submitted to this Hub", | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"team_name", | ||
"team_abbr", | ||
"model_name", | ||
"model_abbr", | ||
"model_contributors", | ||
"license", | ||
"team_funding", | ||
"methods", | ||
"methods_url", | ||
"data_sources", | ||
"ensemble_of_models", | ||
"ensemble_of_hub_models" | ||
] | ||
} |
Oops, something went wrong.