Skip to content

Commit

Permalink
Merge pull request #232 from Exabyte-io/update/SOF-6182
Browse files Browse the repository at this point in the history
SOF-6182: exabyte schema
  • Loading branch information
k0stik authored Oct 21, 2022
2 parents 94d38c3 + 3897a74 commit 040898e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
19 changes: 19 additions & 0 deletions schema/core/reference/exabyte.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"schemaId": "core/reference/exabyte",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"materialId": {
"description": "Material's identity. Used for protoProperties.",
"type": "string"
},
"jobId": {
"description": "Job's identity",
"type": "string"
},
"unitId": {
"description": "Id of the unit that extracted the result",
"type": "string"
}
}
}
20 changes: 7 additions & 13 deletions schema/property/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,15 @@
"type": "string"
},
"info": {
"type": "object",
"properties": {
"materialId": {
"description": "Material's identity. Used for protoProperties.",
"type": "string"
"oneOf": [
{
"$ref": "../core/reference/exabyte.json"
},
"jobId": {
"description": "Job's identity",
"type": "string"
},
"unitId": {
"description": "Id of the unit that extracted the result",
"type": "string"
{
"$ref": "../core/reference/experiment.json"
}
}
]

}
}
}

0 comments on commit 040898e

Please sign in to comment.