Skip to content

Commit 9ae7032

Browse files
ga4gh#79 issue : Created schema.json and schema.yaml
Schema File: Add the "accessions" attribute in the schema definition (e.g., in schema.json, schema.yaml, or relevant model files). Validation Files (if applicable): Implement or update validation logic for the new attribute. Signed off by : `Srinjoy sen Chowdhury [email protected]`
1 parent deca138 commit 9ae7032

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

schemas/schema.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"id": {
5+
"type": "string"
6+
},
7+
"name": {
8+
"type": "string"
9+
},
10+
"accessions": {
11+
"type": "array",
12+
"items": {
13+
"type": "string",
14+
"description": "An array of accession identifiers, each prefixed with the authority (e.g., NCBI:XXXX, ENA:YYYY)"
15+
}
16+
}
17+
},
18+
"required": ["id", "accessions"]
19+
}
20+

schemas/schema.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
type: object
2+
properties:
3+
id:
4+
type: string
5+
name:
6+
type: string
7+
accessions:
8+
type: array
9+
items:
10+
type: string
11+
description: "An array of accession identifiers, each prefixed with the authority (e.g., NCBI:XXXX, ENA:YYYY)"
12+
required:
13+
- id
14+
- accessions

0 commit comments

Comments
 (0)