Skip to content

Commit b630637

Browse files
chore(schemas): regenerate JSON schema files
1 parent f7db57f commit b630637

16 files changed

+4059
-476
lines changed

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

Lines changed: 177 additions & 14 deletions
Large diffs are not rendered by default.

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

Lines changed: 143 additions & 14 deletions
Large diffs are not rendered by default.

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

Lines changed: 172 additions & 11 deletions
Large diffs are not rendered by default.

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

Lines changed: 126 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,149 @@
11
$schema: http://json-schema.org/draft-07/schema#
22
title: DatasetCollection
3+
description: A named group of datasets from a single maintainer (e.g. "nextstrain", "community").
34
type: object
45
required:
56
- datasets
67
- meta
78
properties:
89
meta:
9-
$ref: '#/definitions/DatasetCollectionMeta'
10+
description: 'Collection metadata: identifier, display name, maintainer contact information'
11+
allOf:
12+
- $ref: '#/definitions/DatasetCollectionMeta'
1013
datasets:
14+
description: Datasets belonging to this collection
1115
type: array
1216
items:
1317
$ref: '#/definitions/Dataset'
1418
definitions:
1519
DatasetCollectionMeta:
20+
description: 'Metadata describing a dataset collection: identity, branding, and maintainer information.'
1621
type: object
1722
required:
1823
- id
1924
properties:
2025
id:
26+
description: Unique identifier for this collection (e.g. "nextstrain")
2127
type: string
2228
title:
29+
description: Human-readable display name (e.g. "Nextstrain")
2330
type:
2431
- string
2532
- 'null'
2633
description:
34+
description: Short description of the collection and its maintainer
2735
type:
2836
- string
2937
- 'null'
3038
color:
39+
description: Brand color for UI display (CSS hex, e.g. "#9067b5")
3140
type:
3241
- string
3342
- 'null'
3443
icon:
44+
description: Path to the collection icon image
3545
type:
3646
- string
3747
- 'null'
3848
maintainers:
49+
description: People or organizations maintaining this collection
3950
type: array
4051
items:
4152
$ref: '#/definitions/DatasetCollectionUrl'
4253
urls:
54+
description: 'Related URLs: source repository, contact page, documentation'
4355
type: array
4456
items:
4557
$ref: '#/definitions/DatasetCollectionUrl'
4658
DatasetCollectionUrl:
59+
description: A named URL entry used for maintainer contacts and related links.
4760
type: object
4861
required:
4962
- name
5063
- url
5164
properties:
5265
name:
66+
description: Label describing this URL (e.g. "source", "contact")
5367
type: string
5468
url:
69+
description: The URL
5570
type: string
5671
Dataset:
72+
description: A single Nextclade dataset providing reference data and configuration for one pathogen.
73+
examples:
74+
- $schema: https://raw.githubusercontent.com/nextstrain/nextclade/refs/heads/release/packages/nextclade-schemas/internal-dataset-json.schema.json
75+
path: nextstrain/rsv/a/EPI_ISL_412866
76+
shortcuts:
77+
- rsv_a
78+
- nextstrain/rsv/a
79+
attributes:
80+
name: RSV-A
81+
reference name: hRSV/A/England/397/2017
82+
reference accession: EPI_ISL_412866
83+
files:
84+
reference: reference.fasta
85+
pathogenJson: pathogen.json
86+
genomeAnnotation: genome_annotation.gff3
87+
treeJson: tree.json
88+
examples: sequences.fasta
89+
readme: README.md
90+
changelog: CHANGELOG.md
91+
versions:
92+
- tag: 2026-01-06--14-59-32Z
93+
updatedAt: 2026-01-06T14:59:32Z
94+
compatibility:
95+
cli: 3.0.0
96+
web: 3.0.0
97+
version:
98+
tag: 2026-01-06--14-59-32Z
99+
updatedAt: 2026-01-06T14:59:32Z
100+
compatibility:
101+
cli: 3.0.0
102+
web: 3.0.0
57103
type: object
58104
required:
59105
- path
60106
properties:
61107
path:
108+
description: Unique path-like identifier (e.g. "nextstrain/sars-cov-2/wuhan-hu-1/orfs")
62109
type: string
63110
shortcuts:
111+
description: Short alias names for this dataset (e.g. "sars-cov-2", "rsv_a")
64112
type: array
65113
items:
66114
type: string
67115
attributes:
68-
$ref: '#/definitions/DatasetAttributes'
116+
description: 'Dataset attributes: name, reference info, status flags'
117+
allOf:
118+
- $ref: '#/definitions/DatasetAttributes'
69119
meta:
70-
$ref: '#/definitions/DatasetMeta'
120+
description: 'Dataset-level metadata: source code URL, bug tracker, authors'
121+
allOf:
122+
- $ref: '#/definitions/DatasetMeta'
71123
files:
72-
$ref: '#/definitions/DatasetFiles'
124+
description: Filenames of dataset components (reference, annotation, tree, etc.)
125+
allOf:
126+
- $ref: '#/definitions/DatasetFiles'
73127
capabilities:
74-
$ref: '#/definitions/DatasetCapabilities'
128+
description: 'Advertised analysis capabilities: clade counts, QC rules, primer support'
129+
allOf:
130+
- $ref: '#/definitions/DatasetCapabilities'
75131
versions:
132+
description: All available tagged releases, ordered newest-first
76133
type: array
77134
items:
78135
$ref: '#/definitions/DatasetVersion'
79136
version:
80-
$ref: '#/definitions/DatasetVersion'
137+
description: The latest (default) version of this dataset
138+
allOf:
139+
- $ref: '#/definitions/DatasetVersion'
81140
type:
141+
description: Whether the dataset is a directory-based dataset or an Auspice JSON
82142
anyOf:
83143
- $ref: '#/definitions/DatasetType'
84144
- type: 'null'
85145
maintenance:
146+
description: Maintainer and support information for this dataset
86147
anyOf:
87148
- $ref: '#/definitions/DatasetMaintenance'
88149
- type: 'null'
@@ -117,131 +178,185 @@ definitions:
117178
- 'null'
118179
additionalProperties: true
119180
DatasetMeta:
181+
description: 'Dataset-level metadata: authorship and project links.'
120182
type: object
121183
properties:
122184
source code:
185+
description: URL to the dataset source code repository
123186
type:
124187
- string
125188
- 'null'
126189
bugs:
190+
description: URL to the bug tracker or issue page
127191
type:
128192
- string
129193
- 'null'
130194
authors:
195+
description: List of dataset authors or maintainers
131196
type: array
132197
items:
133198
type: string
134199
DatasetFiles:
200+
description: Filenames of dataset components, relative to the dataset version directory.
201+
examples:
202+
- reference: reference.fasta
203+
pathogenJson: pathogen.json
204+
genomeAnnotation: genome_annotation.gff3
205+
treeJson: tree.json
206+
examples: sequences.fasta
207+
readme: README.md
208+
changelog: CHANGELOG.md
135209
type: object
136210
properties:
137211
reference:
212+
description: Reference sequence FASTA file (e.g. "reference.fasta")
138213
type:
139214
- string
140215
- 'null'
141216
pathogenJson:
217+
description: Pathogen configuration file (e.g. "pathogen.json")
142218
type:
143219
- string
144220
- 'null'
145221
genomeAnnotation:
222+
description: Genome annotation in GFF3 format (e.g. "genome_annotation.gff3")
146223
type:
147224
- string
148225
- 'null'
149226
treeJson:
227+
description: Reference phylogenetic tree in Auspice JSON format (e.g. "tree.json")
150228
type:
151229
- string
152230
- 'null'
153231
examples:
232+
description: Example query sequences for testing (e.g. "sequences.fasta")
154233
type:
155234
- string
156235
- 'null'
157236
readme:
237+
description: Dataset README documentation file
158238
type:
159239
- string
160240
- 'null'
161241
changelog:
242+
description: Dataset changelog file
162243
type:
163244
- string
164245
- 'null'
165246
DatasetCapabilities:
247+
description: Analysis features supported by a dataset, used for UI display and filtering.
166248
type: object
167249
properties:
168250
clades:
251+
description: Number of distinct clade values defined in the reference tree
169252
type:
170253
- integer
171254
- 'null'
172255
format: uint
173256
minimum: 0.0
174257
customClades:
258+
description: 'Additional clade classification systems and their value counts (e.g. "Nextclade_pango": 4731)'
175259
type: object
176260
additionalProperties:
177261
type: integer
178262
format: uint
179263
minimum: 0.0
180264
qc:
265+
description: QC rule names enabled for this dataset (e.g. "missingData", "privateMutations")
181266
type: array
182267
items:
183268
type: string
184269
primers:
270+
description: Whether PCR primer mutation detection is available
185271
type:
186272
- boolean
187273
- 'null'
188274
other:
275+
description: Other capabilities not covered above (e.g. "phenotypeData", "mutLabels")
189276
type: array
190277
items:
191278
type: string
192279
DatasetVersion:
280+
description: A tagged release of a dataset, identified by a timestamp tag.
281+
examples:
282+
- tag: 2026-01-06--14-59-32Z
283+
updatedAt: 2026-01-06T14:59:32Z
284+
compatibility:
285+
cli: 3.0.0
286+
web: 3.0.0
193287
type: object
194288
required:
195289
- tag
196290
properties:
197291
tag:
292+
description: Version identifier in timestamp format (e.g. "2026-01-06--14-59-32Z")
198293
type: string
199294
updatedAt:
295+
description: ISO 8601 timestamp of when this version was published
200296
type:
201297
- string
202298
- 'null'
203299
compatibility:
300+
description: Minimum CLI/web versions required to use this dataset version
204301
anyOf:
205302
- $ref: '#/definitions/DatasetCompatibility'
206303
- type: 'null'
207304
DatasetCompatibility:
305+
description: Minimum application versions required to use a dataset version.
208306
type: object
209307
properties:
210308
cli:
309+
description: Minimum Nextclade CLI semver version (e.g. "3.0.0-alpha.0")
211310
type: string
212311
web:
312+
description: Minimum Nextclade Web semver version (e.g. "3.0.0-alpha.0")
213313
type: string
214314
DatasetType:
215-
type: string
216-
enum:
217-
- directory
218-
- auspiceJson
219-
- other
315+
description: How dataset content is structured.
316+
oneOf:
317+
- description: Standard dataset with individual files in a directory
318+
type: string
319+
enum:
320+
- directory
321+
- description: Single Auspice JSON file used as both tree and dataset
322+
type: string
323+
enum:
324+
- auspiceJson
325+
- description: Other dataset format
326+
type: string
327+
enum:
328+
- other
220329
DatasetMaintenance:
221330
description: Contact and documentation URLs for dataset maintenance
222331
type: object
223332
properties:
224333
website:
334+
description: URLs for the project or organization website.
225335
type: array
226336
items:
227337
type: string
228338
documentation:
339+
description: URLs for dataset documentation and usage guides.
229340
type: array
230341
items:
231342
type: string
232343
source code:
344+
description: URLs for the source code repositories used to build the dataset.
233345
type: array
234346
items:
235347
type: string
236348
issues:
349+
description: URLs for reporting bugs and requesting features related to the dataset.
237350
type: array
238351
items:
239352
type: string
240353
organizations:
354+
description: Names of organizations responsible for maintaining the dataset.
241355
type: array
242356
items:
243357
type: string
244358
authors:
359+
description: Names and contact information of dataset authors.
245360
type: array
246361
items:
247362
type: string

0 commit comments

Comments
 (0)