Skip to content

docs: add documentation comments to JSON schema types#1757

Merged
ivan-aksamentov merged 11 commits intomasterfrom
docs/schema-docs-1
Mar 5, 2026
Merged

docs: add documentation comments to JSON schema types#1757
ivan-aksamentov merged 11 commits intomasterfrom
docs/schema-docs-1

Conversation

@ivan-aksamentov
Copy link
Copy Markdown
Member

@ivan-aksamentov ivan-aksamentov commented Mar 5, 2026

Add doc comments to Rust structs used for JSON schema generation, improving documentation for pathogen.json configuration, dataset index structures, QC rules, output formats, and Auspice tree extensions. The doc comments propagate to generated JSON/YAML schema files via schemars, making schemas self-documenting for dataset authors and API consumers.

  • Add doc comments to output structs (NextcladeOutputs, ResultsJson, NextcladeErrorOutputs)
  • Add doc comments to QC config and result structs
  • Add doc comments to dataset index types with examples
  • Add doc comments to tree and Auspice extension types
  • Add doc comments to gene, CDS, and annotation types
  • Add doc comments to mutation types (substitutions, deletions, insertions)
  • Add doc comments to pathogen config and phenotype types
  • Add doc comments to alignment parameter types
  • Regenerate JSON schema files
  1. Related to: fix: correct schema documentation errors #1758, fix: correct documentation errors in dataset guides nextclade_data#415

…esultsJson, NextcladeErrorOutputs

- Add field-level doc comments to all ~40 NextcladeOutputs fields, PeptideWarning, PhenotypeValue
- Add field-level doc comments to ResultsJson fields
- Add struct and field doc comments to NextcladeErrorOutputs
- Regenerate JSON/YAML schema files with new description fields
- QcStatus, QcResult, QcResultMissingData, QcResultMixedSites
- QcResultPrivateMutations, QcResultSnpClusters, ClusteredSnp
- QcResultFrameShifts, QcResultStopCodons
- Fix `//` to `///` on QcRulesConfigMixedSites so description propagates to schema
- Add field-level doc comments to all QC config structs: QcRulesConfigMissingData, QcRulesConfigMixedSites, QcRulesConfigPrivateMutations, QcRulesConfigSnpClusters, QcRulesConfigFrameShifts, QcRulesConfigStopCodons, FrameShiftLocation, StopCodonLocation, QcConfig
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 5, 2026

@ivan-aksamentov ivan-aksamentov merged commit b630637 into master Mar 5, 2026
18 of 19 checks passed
@ivan-aksamentov ivan-aksamentov deleted the docs/schema-docs-1 branch March 5, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant