Skip to content

Commit 1e46e6b

Browse files
yarikopticclaude
andcommitted
refactor: git mv validate.py and validate_types.py into dandi/validate/ subpackage
Pure file move with no content changes, plus __init__.py re-exports for backward compatibility. Imports will be updated in the next commit. Co-Authored-By: Claude Code 2.1.63 / Claude Opus 4.6 <noreply@anthropic.com>
1 parent fb5e2f0 commit 1e46e6b

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

dandi/validate/__init__.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
"""Validation of DANDI datasets against schemas and standards.
2+
3+
This subpackage provides validation functionality for dandisets, including:
4+
- DANDI schema validation
5+
- BIDS standard validation
6+
- File layout and organization validation
7+
- Metadata completeness checking
8+
9+
Submodules:
10+
- core: Main validation functions (validate, validate_bids)
11+
- types: Data types and models (ValidationResult, Origin, Severity, etc.)
12+
- io: JSONL read/write utilities for validation results
13+
"""
14+
15+
from .core import validate, validate_bids
16+
from .types import (
17+
ORIGIN_INTERNAL_DANDI,
18+
ORIGIN_VALIDATION_DANDI,
19+
ORIGIN_VALIDATION_DANDI_LAYOUT,
20+
ORIGIN_VALIDATION_DANDI_ZARR,
21+
Origin,
22+
OriginType,
23+
Scope,
24+
Severity,
25+
Severity_,
26+
Standard,
27+
ValidationResult,
28+
Validator,
29+
)
30+
31+
__all__ = [
32+
"ORIGIN_INTERNAL_DANDI",
33+
"ORIGIN_VALIDATION_DANDI",
34+
"ORIGIN_VALIDATION_DANDI_LAYOUT",
35+
"ORIGIN_VALIDATION_DANDI_ZARR",
36+
"Origin",
37+
"OriginType",
38+
"Scope",
39+
"Severity",
40+
"Severity_",
41+
"Standard",
42+
"ValidationResult",
43+
"Validator",
44+
"validate",
45+
"validate_bids",
46+
]

0 commit comments

Comments
 (0)