Skip to content

Commit d53a8c5

Browse files
chore(schemas): regenerate JSON schema files
1 parent ff2de10 commit d53a8c5

12 files changed

+400
-28
lines changed

packages/nextclade-schemas/input-pathogen-json.schema.json

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"schemaVersion": "3.0.0",
88
"attributes": {
99
"name": "Influenza A H3N2 HA",
10-
"reference accession": "CY163680",
1110
"reference name": "A/Wisconsin/67/2005-egg",
11+
"reference accession": "CY163680",
1212
"segment": "ha"
1313
},
1414
"shortcuts": [
@@ -154,8 +154,7 @@
154154
"type": "string"
155155
},
156156
"attributes": {
157-
"type": "object",
158-
"additionalProperties": true
157+
"$ref": "#/definitions/PathogenAttributes"
159158
},
160159
"shortcuts": {
161160
"type": "array",
@@ -292,6 +291,34 @@
292291
}
293292
},
294293
"definitions": {
294+
"PathogenAttributes": {
295+
"description": "Pathogen metadata attributes with recognized keys and extensibility",
296+
"type": "object",
297+
"properties": {
298+
"name": {
299+
"description": "Human-readable dataset name",
300+
"type": [
301+
"string",
302+
"null"
303+
]
304+
},
305+
"reference name": {
306+
"description": "Name of the reference sequence",
307+
"type": [
308+
"string",
309+
"null"
310+
]
311+
},
312+
"reference accession": {
313+
"description": "Accession number of the reference sequence",
314+
"type": [
315+
"string",
316+
"null"
317+
]
318+
}
319+
},
320+
"additionalProperties": true
321+
},
295322
"DatasetMeta": {
296323
"type": "object",
297324
"properties": {

packages/nextclade-schemas/input-pathogen-json.schema.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ examples:
55
- schemaVersion: 3.0.0
66
attributes:
77
name: Influenza A H3N2 HA
8-
reference accession: CY163680
98
reference name: A/Wisconsin/67/2005-egg
9+
reference accession: CY163680
1010
segment: ha
1111
shortcuts:
1212
- flu_h3n2_ha_broad
@@ -102,8 +102,7 @@ properties:
102102
schemaVersion:
103103
type: string
104104
attributes:
105-
type: object
106-
additionalProperties: true
105+
$ref: '#/definitions/PathogenAttributes'
107106
shortcuts:
108107
type: array
109108
items:
@@ -171,6 +170,26 @@ properties:
171170
- $ref: '#/definitions/DatasetMaintenance'
172171
- type: 'null'
173172
definitions:
173+
PathogenAttributes:
174+
description: Pathogen metadata attributes with recognized keys and extensibility
175+
type: object
176+
properties:
177+
name:
178+
description: Human-readable dataset name
179+
type:
180+
- string
181+
- 'null'
182+
reference name:
183+
description: Name of the reference sequence
184+
type:
185+
- string
186+
- 'null'
187+
reference accession:
188+
description: Accession number of the reference sequence
189+
type:
190+
- string
191+
- 'null'
192+
additionalProperties: true
174193
DatasetMeta:
175194
type: object
176195
properties:

packages/nextclade-schemas/internal-dataset-collection-json.schema.json

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@
9696
}
9797
},
9898
"attributes": {
99-
"type": "object",
100-
"additionalProperties": true
99+
"$ref": "#/definitions/DatasetAttributes"
101100
},
102101
"meta": {
103102
"$ref": "#/definitions/DatasetMeta"
@@ -139,6 +138,48 @@
139138
}
140139
}
141140
},
141+
"DatasetAttributes": {
142+
"description": "Dataset metadata attributes with recognized keys and extensibility",
143+
"type": "object",
144+
"properties": {
145+
"name": {
146+
"description": "Human-readable dataset name",
147+
"type": [
148+
"string",
149+
"null"
150+
]
151+
},
152+
"reference name": {
153+
"description": "Name of the reference sequence",
154+
"type": [
155+
"string",
156+
"null"
157+
]
158+
},
159+
"reference accession": {
160+
"description": "Accession number of the reference sequence",
161+
"type": [
162+
"string",
163+
"null"
164+
]
165+
},
166+
"deprecated": {
167+
"description": "If true, dataset is deprecated and excluded from listings by default. Authors mark a dataset as deprecated to indicate it will no longer be updated or supported. Use `--include-deprecated` CLI flag to show deprecated datasets.",
168+
"type": [
169+
"boolean",
170+
"null"
171+
]
172+
},
173+
"experimental": {
174+
"description": "If true, dataset is experimental and excluded with `--no-experimental` CLI flag. Authors mark a dataset as experimental when development is still in progress, or if the dataset is incomplete or of lower quality than usual. Use at own risk.",
175+
"type": [
176+
"boolean",
177+
"null"
178+
]
179+
}
180+
},
181+
"additionalProperties": true
182+
},
142183
"DatasetMeta": {
143184
"type": "object",
144185
"properties": {

packages/nextclade-schemas/internal-dataset-collection-json.schema.yaml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ definitions:
6565
items:
6666
type: string
6767
attributes:
68-
type: object
69-
additionalProperties: true
68+
$ref: '#/definitions/DatasetAttributes'
7069
meta:
7170
$ref: '#/definitions/DatasetMeta'
7271
files:
@@ -87,6 +86,36 @@ definitions:
8786
anyOf:
8887
- $ref: '#/definitions/DatasetMaintenance'
8988
- type: 'null'
89+
DatasetAttributes:
90+
description: Dataset metadata attributes with recognized keys and extensibility
91+
type: object
92+
properties:
93+
name:
94+
description: Human-readable dataset name
95+
type:
96+
- string
97+
- 'null'
98+
reference name:
99+
description: Name of the reference sequence
100+
type:
101+
- string
102+
- 'null'
103+
reference accession:
104+
description: Accession number of the reference sequence
105+
type:
106+
- string
107+
- 'null'
108+
deprecated:
109+
description: If true, dataset is deprecated and excluded from listings by default. Authors mark a dataset as deprecated to indicate it will no longer be updated or supported. Use `--include-deprecated` CLI flag to show deprecated datasets.
110+
type:
111+
- boolean
112+
- 'null'
113+
experimental:
114+
description: If true, dataset is experimental and excluded with `--no-experimental` CLI flag. Authors mark a dataset as experimental when development is still in progress, or if the dataset is incomplete or of lower quality than usual. Use at own risk.
115+
type:
116+
- boolean
117+
- 'null'
118+
additionalProperties: true
90119
DatasetMeta:
91120
type: object
92121
properties:

packages/nextclade-schemas/internal-dataset-json.schema.json

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
}
1717
},
1818
"attributes": {
19-
"type": "object",
20-
"additionalProperties": true
19+
"$ref": "#/definitions/DatasetAttributes"
2120
},
2221
"meta": {
2322
"$ref": "#/definitions/DatasetMeta"
@@ -59,6 +58,48 @@
5958
}
6059
},
6160
"definitions": {
61+
"DatasetAttributes": {
62+
"description": "Dataset metadata attributes with recognized keys and extensibility",
63+
"type": "object",
64+
"properties": {
65+
"name": {
66+
"description": "Human-readable dataset name",
67+
"type": [
68+
"string",
69+
"null"
70+
]
71+
},
72+
"reference name": {
73+
"description": "Name of the reference sequence",
74+
"type": [
75+
"string",
76+
"null"
77+
]
78+
},
79+
"reference accession": {
80+
"description": "Accession number of the reference sequence",
81+
"type": [
82+
"string",
83+
"null"
84+
]
85+
},
86+
"deprecated": {
87+
"description": "If true, dataset is deprecated and excluded from listings by default. Authors mark a dataset as deprecated to indicate it will no longer be updated or supported. Use `--include-deprecated` CLI flag to show deprecated datasets.",
88+
"type": [
89+
"boolean",
90+
"null"
91+
]
92+
},
93+
"experimental": {
94+
"description": "If true, dataset is experimental and excluded with `--no-experimental` CLI flag. Authors mark a dataset as experimental when development is still in progress, or if the dataset is incomplete or of lower quality than usual. Use at own risk.",
95+
"type": [
96+
"boolean",
97+
"null"
98+
]
99+
}
100+
},
101+
"additionalProperties": true
102+
},
62103
"DatasetMeta": {
63104
"type": "object",
64105
"properties": {

packages/nextclade-schemas/internal-dataset-json.schema.yaml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ properties:
1111
items:
1212
type: string
1313
attributes:
14-
type: object
15-
additionalProperties: true
14+
$ref: '#/definitions/DatasetAttributes'
1615
meta:
1716
$ref: '#/definitions/DatasetMeta'
1817
files:
@@ -34,6 +33,36 @@ properties:
3433
- $ref: '#/definitions/DatasetMaintenance'
3534
- type: 'null'
3635
definitions:
36+
DatasetAttributes:
37+
description: Dataset metadata attributes with recognized keys and extensibility
38+
type: object
39+
properties:
40+
name:
41+
description: Human-readable dataset name
42+
type:
43+
- string
44+
- 'null'
45+
reference name:
46+
description: Name of the reference sequence
47+
type:
48+
- string
49+
- 'null'
50+
reference accession:
51+
description: Accession number of the reference sequence
52+
type:
53+
- string
54+
- 'null'
55+
deprecated:
56+
description: If true, dataset is deprecated and excluded from listings by default. Authors mark a dataset as deprecated to indicate it will no longer be updated or supported. Use `--include-deprecated` CLI flag to show deprecated datasets.
57+
type:
58+
- boolean
59+
- 'null'
60+
experimental:
61+
description: If true, dataset is experimental and excluded with `--no-experimental` CLI flag. Authors mark a dataset as experimental when development is still in progress, or if the dataset is incomplete or of lower quality than usual. Use at own risk.
62+
type:
63+
- boolean
64+
- 'null'
65+
additionalProperties: true
3766
DatasetMeta:
3867
type: object
3968
properties:

packages/nextclade-schemas/internal-index-json.schema.json

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@
120120
}
121121
},
122122
"attributes": {
123-
"type": "object",
124-
"additionalProperties": true
123+
"$ref": "#/definitions/DatasetAttributes"
125124
},
126125
"meta": {
127126
"$ref": "#/definitions/DatasetMeta"
@@ -163,6 +162,48 @@
163162
}
164163
}
165164
},
165+
"DatasetAttributes": {
166+
"description": "Dataset metadata attributes with recognized keys and extensibility",
167+
"type": "object",
168+
"properties": {
169+
"name": {
170+
"description": "Human-readable dataset name",
171+
"type": [
172+
"string",
173+
"null"
174+
]
175+
},
176+
"reference name": {
177+
"description": "Name of the reference sequence",
178+
"type": [
179+
"string",
180+
"null"
181+
]
182+
},
183+
"reference accession": {
184+
"description": "Accession number of the reference sequence",
185+
"type": [
186+
"string",
187+
"null"
188+
]
189+
},
190+
"deprecated": {
191+
"description": "If true, dataset is deprecated and excluded from listings by default. Authors mark a dataset as deprecated to indicate it will no longer be updated or supported. Use `--include-deprecated` CLI flag to show deprecated datasets.",
192+
"type": [
193+
"boolean",
194+
"null"
195+
]
196+
},
197+
"experimental": {
198+
"description": "If true, dataset is experimental and excluded with `--no-experimental` CLI flag. Authors mark a dataset as experimental when development is still in progress, or if the dataset is incomplete or of lower quality than usual. Use at own risk.",
199+
"type": [
200+
"boolean",
201+
"null"
202+
]
203+
}
204+
},
205+
"additionalProperties": true
206+
},
166207
"DatasetMeta": {
167208
"type": "object",
168209
"properties": {

0 commit comments

Comments
 (0)