Skip to content

add asdftool validate#1952

Merged
braingram merged 8 commits into
asdf-format:mainfrom
braingram:asdftool_validate
Aug 11, 2025
Merged

add asdftool validate#1952
braingram merged 8 commits into
asdf-format:mainfrom
braingram:asdftool_validate

Conversation

@braingram

@braingram braingram commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Description

Add asdftool validate which:

  • validates a file against all tagged schemas
  • validates blocks against checksums (can be disabled)
  • optionally validates against a custom schema

Closes #1950

Tasks

  • run pre-commit on your machine
  • run pytest on your machine
  • Does this PR add new features and / or change user-facing code / API? (if not, label with no-changelog-entry-needed)
    • write news fragment(s) in changes/: echo "changed something" > changes/<PR#>.<changetype>.rst (see below for change types)
    • update relevant docstrings and / or docs/ page
    • for any new features, add unit tests
news fragment change types...
  • changes/<PR#>.feature.rst: new feature
  • changes/<PR#>.bugfix.rst: bug fix
  • changes/<PR#>.doc.rst: documentation change
  • changes/<PR#>.removal.rst: deprecation or removal of public API
  • changes/<PR#>.general.rst: infrastructure or miscellaneous change

@braingram braingram marked this pull request as ready for review August 11, 2025 15:54
@braingram braingram requested a review from a team as a code owner August 11, 2025 15:54

@zacharyburnett zacharyburnett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some suggestions

Comment thread asdf/_commands/validate.py Outdated
Comment thread asdf/_commands/validate.py Outdated
Comment thread asdf/_commands/validate.py
Comment thread asdf/_commands/validate.py
Comment thread asdf/_commands/validate.py Outdated
Comment thread docs/asdf/asdf_tool.rst Outdated
braingram and others added 7 commits August 11, 2025 12:20
Co-authored-by: Zach Burnett <zrb+git@hildebrind.space>
Co-authored-by: Zach Burnett <zrb+git@hildebrind.space>
Co-authored-by: Zach Burnett <zrb+git@hildebrind.space>
Co-authored-by: Zach Burnett <zrb+git@hildebrind.space>
Co-authored-by: Zach Burnett <zrb+git@hildebrind.space>
Co-authored-by: Zach Burnett <zrb+git@hildebrind.space>
@braingram braingram merged commit 69bc46a into asdf-format:main Aug 11, 2025
37 checks passed
@braingram braingram deleted the asdftool_validate branch August 11, 2025 18:36
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.

Add asdftool validate

2 participants