Skip to content

Commit

Permalink
Merge pull request #465 from bento-platform/patch/phenopacket-version…
Browse files Browse the repository at this point in the history
…-validation

patch: validate phenopacket version string to be 2.0 only
  • Loading branch information
v-rocheleau committed Dec 22, 2023
2 parents 4d153a5 + 5e81fcf commit c4785df
Show file tree
Hide file tree
Showing 7 changed files with 849 additions and 849 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"iri_prefix": "https://ncit.nci.nih.gov"
}
],
"phenopacket_schema_version": "2.0.0"
"phenopacket_schema_version": "2.0"
}
},
{
Expand Down Expand Up @@ -84,7 +84,7 @@
"meta_data": {
"created_by": "Admin",
"submitted_by": "Admin",
"phenopacket_schema_version": "2.0.0",
"phenopacket_schema_version": "2.0",
"resources": [
{
"id": "NCBITaxon:2018-07-27",
Expand Down Expand Up @@ -141,7 +141,7 @@
"meta_data": {
"created_by": "Admin",
"submitted_by": "Admin",
"phenopacket_schema_version": "2.0.0",
"phenopacket_schema_version": "2.0",
"resources": [
{
"id": "NCBITaxon:2018-07-27",
Expand Down Expand Up @@ -194,7 +194,7 @@
"meta_data": {
"created_by": "Admin",
"submitted_by": "Admin",
"phenopacket_schema_version": "2.0.0",
"phenopacket_schema_version": "2.0",
"resources": [
{
"id": "NCBITaxon:2018-07-27",
Expand Down Expand Up @@ -253,7 +253,7 @@
"meta_data": {
"created_by": "Admin",
"submitted_by": "Admin",
"phenopacket_schema_version": "2.0.0",
"phenopacket_schema_version": "2.0",
"resources": [
{
"id": "NCBITaxon:2018-07-27",
Expand Down Expand Up @@ -303,7 +303,7 @@
"meta_data": {
"created_by": "Admin",
"submitted_by": "Admin",
"phenopacket_schema_version": "2.0.0",
"phenopacket_schema_version": "2.0",
"resources": [
{
"id": "NCBITaxon:2018-07-27",
Expand Down Expand Up @@ -351,7 +351,7 @@
"meta_data": {
"created_by": "Admin",
"submitted_by": "Admin",
"phenopacket_schema_version": "2.0.0",
"phenopacket_schema_version": "2.0",
"resources": [
{
"id": "NCBITaxon:2018-07-27",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
"iri_prefix": "http://purl.obolibrary.org/obo/NCIT_"
}
],
"phenopacket_schema_version": "2.0.0",
"phenopacket_schema_version": "2.0",
"external_references": [
{
"id": "PMID:29221636",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@
"iri_prefix": "http://purl.obolibrary.org/obo/NCIT_"
}
],
"phenopacket_schema_version": "2.0.0",
"phenopacket_schema_version": "2.0",
"external_references": [
{
"id": "PMID:29221636",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"iri_prefix": "https://ncit.nci.nih.gov"
}
],
"phenopacket_schema_version": "2.0.0"
"phenopacket_schema_version": "2.0"
},
"biosamples": [
{
Expand Down Expand Up @@ -217,7 +217,7 @@
"iri_prefix": "https://ncit.nci.nih.gov"
}
],
"phenopacket_schema_version": "2.0.0"
"phenopacket_schema_version": "2.0"
},
"biosamples": [
{
Expand Down Expand Up @@ -360,7 +360,7 @@
"iri_prefix": "https://ncit.nci.nih.gov"
}
],
"phenopacket_schema_version": "2.0.0"
"phenopacket_schema_version": "2.0"
},
"biosamples": [
{
Expand Down
2 changes: 1 addition & 1 deletion chord_metadata_service/phenopackets/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"submitted_by": base_type(SCHEMA_TYPES.STRING),
"resources": array_of(RESOURCE_SCHEMA),
"updates": array_of(PHENOPACKET_UPDATE_SCHEMA),
"phenopacket_schema_version": enum_of(["2.0", "2.0.0"]),
"phenopacket_schema_version": enum_of(["2.0"]),
"external_references": array_of(PHENOPACKET_EXTERNAL_REFERENCE_SCHEMA),
"extra_properties": EXTRA_PROPERTIES_SCHEMA
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
"namespacePrefix": "UCUM",
"iriPrefix": "https://units-of-measurement.org/"
}],
"phenopacketSchemaVersion": "2.0.0",
"phenopacketSchemaVersion": "2.0",
"externalReferences": [{
"id": "DOI:10.1016/j.jaccas.2020.04.001",
"reference": "PMID:32292915",
Expand Down

0 comments on commit c4785df

Please sign in to comment.