Skip to content

Commit

Permalink
Merge pull request #274 from elixir-luxembourg/bump-JSON-schema-to-0-0-3
Browse files Browse the repository at this point in the history
bump version of JSON schemas to 0.0.3
  • Loading branch information
vildead authored Sep 3, 2021
2 parents 2ab7585 + 85bb7fd commit 2a09650
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 71 deletions.
2 changes: 1 addition & 1 deletion core/fixtures/json_schemas/elu-core.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-core.json",
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-core.json",
"title": "ELIXIR Luxembourg Core json schema",
"description": "Schema containing core attributes for any json serialisable ELIXIR Luxembourg record.",
"$schema": "http://json-schema.org/draft-04/schema#",
Expand Down
114 changes: 55 additions & 59 deletions core/fixtures/json_schemas/elu-dataset.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-dataset.json",
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-dataset.json",
"title": "ELIXIR Luxembourg Datasets Schema",
"description": "A JSON Schema for describing biomedical research Datasets.",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-core.json"
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-core.json"
}
],
"properties": {
Expand Down Expand Up @@ -217,64 +217,60 @@
"Other_Phenotype_data",
"Other"
]
},
"data_type_notes": {
"type": "string"
},
"access_category": {
"type": "string",
"enum": [
"open-access",
"controlled-access",
"registered-access"
]
},
"subjects_category": {
"type": "array",
"items": {
"type": "string",
"enum": [
"cases",
"controls",
"cases_and_controls"
]
}
},
"de_identification": {
"type": "string",
"enum": [
"anonymized",
"pseudonymized"
]
},
"consent_status": {
"type": "string",
"enum": [
"heterogeneous",
"homogeneous"
]
},
"consent_status_description": {
"type": "string"
},
"has_special_subjects": {
"type": "boolean"
},
"special_subjects_description": {
"type": "string"
},
"embargo_date": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
},
"storage_end_date": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
},
"storage_duration_criteria": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
}
},
"data_type_notes": {
"type": "string"
},
"access_category": {
"type": "string",
"enum": [
"open_access",
"controlled_access",
"registered_access"
]
},
"subjects_category": {
"type": "string",
"enum": [
"cases",
"controls",
"cases_and_controls"
]
},
"de_identification": {
"type": "string",
"enum": [
"anonymization",
"pseudonymization"
]
},
"consent_status": {
"type": "string",
"enum": [
"heterogeneous",
"homogeneous"
]
},
"consent_status_description": {
"type": "string"
},
"has_special_subjects": {
"type": "boolean"
},
"special_subjects_description": {
"type": "string"
},
"embargo_date": {
"type": ["string","null"],
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
},
"storage_end_date": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
},
"storage_duration_criteria": {
"type": ["string", "null"]
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions core/fixtures/json_schemas/elu-institution.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-institution.json",
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-institution.json",
"title": "ELIXIR Luxembourg Partner Schema",
"description": "A JSON Schema for describing partners institutes.",
"$schema": "http://json-schema.org/draft-04/schema#",
Expand All @@ -12,7 +12,7 @@
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-core.json"
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-core.json"
}
],
"properties": {
Expand Down
4 changes: 2 additions & 2 deletions core/fixtures/json_schemas/elu-project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-project.json",
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-project.json",
"title": "ELIXIR Luxembourg Projects Schema",
"description": "A JSON Schema for describing biomedical research Projects.",
"$schema": "http://json-schema.org/draft-04/schema#",
Expand All @@ -12,7 +12,7 @@
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-study.json"
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-study.json"
}
],
"properties": {
Expand Down
4 changes: 2 additions & 2 deletions core/fixtures/json_schemas/elu-study.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-study.json",
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-study.json",
"title": "Study-Project Schema",
"description": "A JSON Schema for describing Studies-Projects within the ELIXIR Data Submission System.",
"$schema": "http://json-schema.org/draft-04/schema#",
Expand All @@ -14,7 +14,7 @@
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-core.json"
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-core.json"
}
],
"properties": {
Expand Down
8 changes: 4 additions & 4 deletions core/fixtures/json_schemas/elu-submission.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-submission.json",
"$id": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-submission.json",
"title": "Submission Schema",
"description": "A JSON Schema for describing submissions in the ELIXIR Data Submission System a.k.a. DISH.",
"$schema": "http://json-schema.org/draft-04/schema#",
Expand All @@ -14,7 +14,7 @@
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-core.json"
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-core.json"
}
],
"properties": {
Expand All @@ -24,7 +24,7 @@
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-study.json"
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-study.json"
}
]
},
Expand All @@ -34,7 +34,7 @@
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/elu-dataset.json"
"$ref": "https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/elu-dataset.json"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion elixir_daisy/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
EXPLORER_DEFAULT_CONNECTION = 'default'

# JSON schemas used for validation on import
IMPORT_JSON_SCHEMAS_URI = 'https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.2/schemas/'
IMPORT_JSON_SCHEMAS_URI = 'https://raw.githubusercontent.com/elixir-luxembourg/json-schemas/v0.0.3/schemas/'
IMPORT_JSON_SCHEMAS_DIR = os.path.join(BASE_DIR, 'core', 'fixtures', 'json_schemas')

# REMS (http://rems2docs.rahtiapp.fi/) Integration
Expand Down

0 comments on commit 2a09650

Please sign in to comment.