dandi 0.76.7__tar.gz → 0.76.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. {dandi-0.76.7 → dandi-0.76.8}/CHANGELOG.md +16 -0
  2. {dandi-0.76.7/dandi.egg-info → dandi-0.76.8}/PKG-INFO +1 -1
  3. {dandi-0.76.7 → dandi-0.76.8}/dandi/_version.py +3 -3
  4. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_service_scripts.py +5 -3
  5. {dandi-0.76.7 → dandi-0.76.8}/dandi/dandiapi.py +18 -0
  6. {dandi-0.76.7 → dandi-0.76.8/dandi.egg-info}/PKG-INFO +1 -1
  7. {dandi-0.76.7 → dandi-0.76.8}/LICENSE +0 -0
  8. {dandi-0.76.7 → dandi-0.76.8}/MANIFEST.in +0 -0
  9. {dandi-0.76.7 → dandi-0.76.8}/README.md +0 -0
  10. {dandi-0.76.7 → dandi-0.76.8}/dandi/__init__.py +0 -0
  11. {dandi-0.76.7 → dandi-0.76.8}/dandi/bids_validator_deno/__init__.py +0 -0
  12. {dandi-0.76.7 → dandi-0.76.8}/dandi/bids_validator_deno/_models.py +0 -0
  13. {dandi-0.76.7 → dandi-0.76.8}/dandi/bids_validator_deno/_validator.py +0 -0
  14. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/__init__.py +0 -0
  15. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/base.py +0 -0
  16. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_delete.py +0 -0
  17. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_digest.py +0 -0
  18. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_download.py +0 -0
  19. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_instances.py +0 -0
  20. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_ls.py +0 -0
  21. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_move.py +0 -0
  22. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_organize.py +0 -0
  23. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_service_scripts.py +0 -0
  24. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_shell_completion.py +0 -0
  25. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_upload.py +0 -0
  26. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/cmd_validate.py +0 -0
  27. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/command.py +0 -0
  28. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/formatter.py +0 -0
  29. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/__init__.py +0 -0
  30. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/biorxiv.json +0 -0
  31. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/biorxiv.vcr.yaml +0 -0
  32. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/elife.json +0 -0
  33. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/elife.vcr.yaml +0 -0
  34. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/jneurosci.json +0 -0
  35. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/jneurosci.vcr.yaml +0 -0
  36. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/nature.json +0 -0
  37. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/nature.vcr.yaml +0 -0
  38. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/neuron.json +0 -0
  39. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/data/update_dandiset_from_doi/neuron.vcr.yaml +0 -0
  40. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_base.py +0 -0
  41. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_cmd_ls.py +0 -0
  42. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_cmd_validate.py +0 -0
  43. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_command.py +0 -0
  44. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_digest.py +0 -0
  45. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_download.py +0 -0
  46. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_formatter.py +0 -0
  47. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_instances.py +0 -0
  48. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_move.py +0 -0
  49. {dandi-0.76.7 → dandi-0.76.8}/dandi/cli/tests/test_shell_completion.py +0 -0
  50. {dandi-0.76.7 → dandi-0.76.8}/dandi/consts.py +0 -0
  51. {dandi-0.76.7 → dandi-0.76.8}/dandi/dandiarchive.py +0 -0
  52. {dandi-0.76.7 → dandi-0.76.8}/dandi/dandiset.py +0 -0
  53. {dandi-0.76.7 → dandi-0.76.8}/dandi/delete.py +0 -0
  54. {dandi-0.76.7 → dandi-0.76.8}/dandi/download.py +0 -0
  55. {dandi-0.76.7 → dandi-0.76.8}/dandi/due.py +0 -0
  56. {dandi-0.76.7 → dandi-0.76.8}/dandi/exceptions.py +0 -0
  57. {dandi-0.76.7 → dandi-0.76.8}/dandi/files/__init__.py +0 -0
  58. {dandi-0.76.7 → dandi-0.76.8}/dandi/files/_private.py +0 -0
  59. {dandi-0.76.7 → dandi-0.76.8}/dandi/files/bases.py +0 -0
  60. {dandi-0.76.7 → dandi-0.76.8}/dandi/files/bids.py +0 -0
  61. {dandi-0.76.7 → dandi-0.76.8}/dandi/files/zarr.py +0 -0
  62. {dandi-0.76.7 → dandi-0.76.8}/dandi/keyring_utils.py +0 -0
  63. {dandi-0.76.7 → dandi-0.76.8}/dandi/metadata/__init__.py +0 -0
  64. {dandi-0.76.7 → dandi-0.76.8}/dandi/metadata/core.py +0 -0
  65. {dandi-0.76.7 → dandi-0.76.8}/dandi/metadata/nwb.py +0 -0
  66. {dandi-0.76.7 → dandi-0.76.8}/dandi/metadata/util.py +0 -0
  67. {dandi-0.76.7 → dandi-0.76.8}/dandi/misctypes.py +0 -0
  68. {dandi-0.76.7 → dandi-0.76.8}/dandi/move.py +0 -0
  69. {dandi-0.76.7 → dandi-0.76.8}/dandi/organize.py +0 -0
  70. {dandi-0.76.7 → dandi-0.76.8}/dandi/pynwb_utils.py +0 -0
  71. {dandi-0.76.7 → dandi-0.76.8}/dandi/pytest_plugin.py +0 -0
  72. {dandi-0.76.7 → dandi-0.76.8}/dandi/support/__init__.py +0 -0
  73. {dandi-0.76.7 → dandi-0.76.8}/dandi/support/digests.py +0 -0
  74. {dandi-0.76.7 → dandi-0.76.8}/dandi/support/iterators.py +0 -0
  75. {dandi-0.76.7 → dandi-0.76.8}/dandi/support/pyout.py +0 -0
  76. {dandi-0.76.7 → dandi-0.76.8}/dandi/support/tests/__init__.py +0 -0
  77. {dandi-0.76.7 → dandi-0.76.8}/dandi/support/tests/test_digests.py +0 -0
  78. {dandi-0.76.7 → dandi-0.76.8}/dandi/support/tests/test_iterators.py +0 -0
  79. {dandi-0.76.7 → dandi-0.76.8}/dandi/support/threaded_walk.py +0 -0
  80. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/__init__.py +0 -0
  81. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/dandiarchive-docker/docker-compose.yml +0 -0
  82. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/metadata/dandimeta_migration.new.json +0 -0
  83. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/metadata/metadata2asset.json +0 -0
  84. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/metadata/metadata2asset_3.json +0 -0
  85. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/metadata/metadata2asset_cellline.json +0 -0
  86. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/metadata/metadata2asset_simple1.json +0 -0
  87. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/c/0/0 +0 -0
  88. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/c/0/1 +0 -0
  89. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/c/1/0 +0 -0
  90. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/c/1/1 +0 -0
  91. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/zarr.json +0 -0
  92. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo/bar/z/zarr.json +0 -0
  93. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo/bar/zarr.json +0 -0
  94. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo/zarr.json +0 -0
  95. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo1/bar1/z1/zarr.json +0 -0
  96. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo1/bar1/zarr.json +0 -0
  97. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo1/zarr.json +0 -0
  98. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo/bar/z/zarr.json +0 -0
  99. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo/bar/zarr.json +0 -0
  100. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo/zarr.json +0 -0
  101. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo1/bar1/z1/zarr.json +0 -0
  102. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo1/bar1/zarr.json +0 -0
  103. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo1/zarr.json +0 -0
  104. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/zarr.json +0 -0
  105. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_missing_zarr_json.zarr/c/0/0 +0 -0
  106. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_missing_zarr_json.zarr/c/0/1 +0 -0
  107. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_missing_zarr_json.zarr/c/1/0 +0 -0
  108. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_missing_zarr_json.zarr/c/1/1 +0 -0
  109. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/c/0/0 +0 -0
  110. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/c/0/1 +0 -0
  111. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/c/1/0 +0 -0
  112. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/c/1/1 +0 -0
  113. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/zarr.json +0 -0
  114. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo/bar/z/zarr.json +0 -0
  115. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo/bar/zarr.json +0 -0
  116. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo/zarr.json +0 -0
  117. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo1/bar1/z1/zarr.json +0 -0
  118. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo1/bar1/zarr.json +0 -0
  119. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo1/zarr.json +0 -0
  120. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/zarr.json +0 -0
  121. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/0/0 +0 -0
  122. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/0/1 +0 -0
  123. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/1/0 +0 -0
  124. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/1/1 +0 -0
  125. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/zarr.json +0 -0
  126. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/fixtures.py +0 -0
  127. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/skip.py +0 -0
  128. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_bids_validator_deno/test_validator.py +0 -0
  129. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_dandiapi.py +0 -0
  130. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_dandiarchive.py +0 -0
  131. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_dandiset.py +0 -0
  132. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_delete.py +0 -0
  133. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_download.py +0 -0
  134. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_files.py +0 -0
  135. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_fixtures.py +0 -0
  136. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_helpers.py +0 -0
  137. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_helptext.py +0 -0
  138. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_keyring.py +0 -0
  139. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_metadata.py +0 -0
  140. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_move.py +0 -0
  141. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_organize.py +0 -0
  142. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_pynwb_utils.py +0 -0
  143. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_upload.py +0 -0
  144. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/test_utils.py +0 -0
  145. {dandi-0.76.7 → dandi-0.76.8}/dandi/tests/xfail.py +0 -0
  146. {dandi-0.76.7 → dandi-0.76.8}/dandi/upload.py +0 -0
  147. {dandi-0.76.7 → dandi-0.76.8}/dandi/utils.py +0 -0
  148. {dandi-0.76.7 → dandi-0.76.8}/dandi/validate/__init__.py +0 -0
  149. {dandi-0.76.7 → dandi-0.76.8}/dandi/validate/_core.py +0 -0
  150. {dandi-0.76.7 → dandi-0.76.8}/dandi/validate/_io.py +0 -0
  151. {dandi-0.76.7 → dandi-0.76.8}/dandi/validate/_types.py +0 -0
  152. {dandi-0.76.7 → dandi-0.76.8}/dandi/validate/tests/__init__.py +0 -0
  153. {dandi-0.76.7 → dandi-0.76.8}/dandi/validate/tests/test_core.py +0 -0
  154. {dandi-0.76.7 → dandi-0.76.8}/dandi/validate/tests/test_io.py +0 -0
  155. {dandi-0.76.7 → dandi-0.76.8}/dandi/validate/tests/test_types.py +0 -0
  156. {dandi-0.76.7 → dandi-0.76.8}/dandi.egg-info/SOURCES.txt +0 -0
  157. {dandi-0.76.7 → dandi-0.76.8}/dandi.egg-info/dependency_links.txt +0 -0
  158. {dandi-0.76.7 → dandi-0.76.8}/dandi.egg-info/entry_points.txt +0 -0
  159. {dandi-0.76.7 → dandi-0.76.8}/dandi.egg-info/not-zip-safe +0 -0
  160. {dandi-0.76.7 → dandi-0.76.8}/dandi.egg-info/requires.txt +0 -0
  161. {dandi-0.76.7 → dandi-0.76.8}/dandi.egg-info/top_level.txt +0 -0
  162. {dandi-0.76.7 → dandi-0.76.8}/pyproject.toml +0 -0
  163. {dandi-0.76.7 → dandi-0.76.8}/setup.cfg +0 -0
  164. {dandi-0.76.7 → dandi-0.76.8}/setup.py +0 -0
  165. {dandi-0.76.7 → dandi-0.76.8}/tox.ini +0 -0
  166. {dandi-0.76.7 → dandi-0.76.8}/versioneer.py +0 -0
@@ -1,3 +1,19 @@
1
+ # 0.76.8 (Tue Jul 28 2026)
2
+
3
+ #### 📝 Documentation
4
+
5
+ - Document validation caveats of the `get_metadata` methods [#1892](https://github.com/dandi/dandi-cli/pull/1892) ([@candleindark](https://github.com/candleindark))
6
+
7
+ #### 🧪 Tests
8
+
9
+ - Build expected metadata with the server's DANDI schema version [#1894](https://github.com/dandi/dandi-cli/pull/1894) ([@candleindark](https://github.com/candleindark))
10
+
11
+ #### Authors: 1
12
+
13
+ - Isaac To ([@candleindark](https://github.com/candleindark))
14
+
15
+ ---
16
+
1
17
  # 0.76.7 (Fri Jul 10 2026)
2
18
 
3
19
  #### 🐛 Bug Fix
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dandi
3
- Version: 0.76.7
3
+ Version: 0.76.8
4
4
  Summary: Command line client for interaction with DANDI instances
5
5
  Author-email: DANDI developers <team@dandiarchive.org>
6
6
  Maintainer-email: DANDI developers <team@dandiarchive.org>
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2026-07-10T19:01:24+0000",
11
+ "date": "2026-07-28T01:20:24+0000",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "0698b7d0ecace38828391de55c259fdd5a93e2ba",
15
- "version": "0.76.7"
14
+ "full-revisionid": "38bc2ee37729652a47f65ca1a2e93f36662354f5",
15
+ "version": "0.76.8"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -9,7 +9,6 @@ import sys
9
9
 
10
10
  import anys
11
11
  from click.testing import CliRunner
12
- from dandischema.consts import DANDI_SCHEMA_VERSION
13
12
  from dandischema.models import ID_PATTERN
14
13
  import pytest
15
14
 
@@ -104,18 +103,21 @@ def test_update_dandiset_from_doi(
104
103
  )
105
104
  assert r.exit_code == 0
106
105
  metadata = new_dandiset.dandiset.get_raw_metadata()
106
+ # The DANDI schema version in the metadata under test is the server's,
107
+ # not this client's.
108
+ server_schema_version = new_dandiset.client.get("/info/")["schema_version"]
107
109
  with (DATA_DIR / "update_dandiset_from_doi" / f"{name}.json").open() as fp:
108
110
  expected = json.load(fp)
109
111
  expected["id"] = anys.AnyFullmatch(rf"{ID_PATTERN}:{dandiset_id}/draft")
110
112
  expected["url"] = f"{repository}/dandiset/{dandiset_id}/draft"
111
113
  expected["@context"] = (
112
114
  "https://raw.githubusercontent.com/dandi/schema/master/releases"
113
- f"/{DANDI_SCHEMA_VERSION}/context.json"
115
+ f"/{server_schema_version}/context.json"
114
116
  )
115
117
  expected["identifier"] = anys.AnyFullmatch(rf"{ID_PATTERN}:{dandiset_id}")
116
118
  expected["repository"] = repository
117
119
  expected["dateCreated"] = anys.ANY_AWARE_DATETIME_STR
118
- expected["schemaVersion"] = DANDI_SCHEMA_VERSION
120
+ expected["schemaVersion"] = server_schema_version
119
121
  expected["wasGeneratedBy"][0]["id"] = anys.AnyFullmatch(
120
122
  r"urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
121
123
  )
@@ -1167,6 +1167,15 @@ class RemoteDandiset:
1167
1167
  Only published Dandiset versions can be expected to have valid
1168
1168
  metadata. Consider using `get_raw_metadata()` instead in order to
1169
1169
  fetch unstructured, possibly-invalid metadata.
1170
+
1171
+ Even a published version's metadata can fail to validate. The
1172
+ fetched metadata is validated against the `Dandiset` model of the installed
1173
+ `dandischema`, not against the version of `Dandiset` model that the metadata
1174
+ was published under, so drift between the two can render
1175
+ previously-valid metadata invalid.
1176
+
1177
+ :raises pydantic.ValidationError: if the fetched metadata does not
1178
+ validate against `dandischema.models.Dandiset`
1170
1179
  """
1171
1180
  return models.Dandiset.model_validate(self.get_raw_metadata())
1172
1181
 
@@ -1575,6 +1584,15 @@ class BaseRemoteAsset(ABC, APIBase):
1575
1584
  Only assets in published Dandiset versions can be expected to have
1576
1585
  valid metadata. Consider using `get_raw_metadata()` instead in
1577
1586
  order to fetch unstructured, possibly-invalid metadata.
1587
+
1588
+ Even a published version's asset metadata can fail to validate. The
1589
+ fetched metadata is validated against the `Asset` model of the installed
1590
+ `dandischema`, not against the version of `Asset` model that the metadata
1591
+ was published under, so drift between the two can render
1592
+ previously-valid metadata invalid.
1593
+
1594
+ :raises pydantic.ValidationError: if the fetched metadata does not
1595
+ validate against `dandischema.models.Asset`
1578
1596
  """
1579
1597
  return models.Asset.model_validate(self.get_raw_metadata())
1580
1598
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dandi
3
- Version: 0.76.7
3
+ Version: 0.76.8
4
4
  Summary: Command line client for interaction with DANDI instances
5
5
  Author-email: DANDI developers <team@dandiarchive.org>
6
6
  Maintainer-email: DANDI developers <team@dandiarchive.org>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes