Skip to content

Commit

Permalink
Merge pull request #93 from HumanCellAtlas/v4.4.0_minorRelease
Browse files Browse the repository at this point in the history
Assay/project_bundle.json now objects. Bundle JSONs have core field.
  • Loading branch information
daniwelter authored Dec 8, 2017
2 parents 15dac04 + 8a7c7e7 commit d238f40
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
13 changes: 8 additions & 5 deletions json_schema/assay_bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"assay_ingest": {
"required": [
"hca_ingest",
"content"
"content",
"core"
],
"type": "object",
"properties": {
Expand All @@ -23,14 +24,16 @@
"type": "object",
"description": "core fields added by HCA ingest service",
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/ingest.json"
},
"core": {
"description": "Type and schema for this object.",
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/core.json"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"type": "object",
"description": "A schema for an assay bundle",
"items": {
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/assay_bundle.json#/definitions/assay_ingest"
}
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/assay_bundle.json#/definitions/assay_ingest"
}
5 changes: 4 additions & 1 deletion json_schema/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"protocol",
"sample",
"file",
"analysis"
"analysis",
"assay_bundle",
"sample_bundle",
"project_bundle"
],
"description": "The name of the core metadata entity type."
},
Expand Down
15 changes: 9 additions & 6 deletions json_schema/project_bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"project_ingest": {
"required": [
"hca_ingest",
"content"
"content",
"core"
],
"type": "object",
"properties": {
Expand All @@ -16,14 +17,16 @@
"type": "object",
"description": "core fields added by HCA ingest service",
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/ingest.json"
},
"core": {
"description": "Type and schema for this object.",
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/core.json"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"description": "A schema for a project bundle",
"items": {
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/project_bundle.json#/definitions/project_ingest"
}
"type": "object",
"description": "A schema for a project bundle",
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/project_bundle.json#/definitions/project_ingest"
}
10 changes: 8 additions & 2 deletions json_schema/sample_bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"sample_ingest": {
"required": [
"hca_ingest",
"content"
"content",
"core"
],
"type": "object",
"properties": {
Expand All @@ -25,7 +26,12 @@
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/ingest.json"
},
"derived_from": {
"type": "string"
"type": "string",
"description": "The sample that this sample was derived from."
},
"core": {
"description": "Type and schema for this object.",
"$ref": "https://raw.githubusercontent.com/HumanCellAtlas/metadata-schema/4.3.0/json_schema/core.json"
}
}
}
Expand Down

0 comments on commit d238f40

Please sign in to comment.