divejson 0.36.0__tar.gz → 0.37.0__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 (299) hide show
  1. {divejson-0.36.0 → divejson-0.37.0}/.github/workflows/ci.yml +1 -0
  2. {divejson-0.36.0 → divejson-0.37.0}/.github/workflows/pr-title.yml +11 -4
  3. {divejson-0.36.0 → divejson-0.37.0}/.github/workflows/release-bump.yml +57 -40
  4. divejson-0.37.0/AGENTS.md +38 -0
  5. {divejson-0.36.0 → divejson-0.37.0}/CHANGELOG.md +11 -0
  6. divejson-0.37.0/CLAUDE.md +1 -0
  7. {divejson-0.36.0 → divejson-0.37.0}/CONTRIBUTING.md +3 -1
  8. {divejson-0.36.0 → divejson-0.37.0}/PKG-INFO +1 -1
  9. divejson-0.37.0/SPEC_REF +1 -0
  10. {divejson-0.36.0 → divejson-0.37.0}/divejson/__init__.py +1 -1
  11. {divejson-0.36.0 → divejson-0.37.0}/divejson/uddf_write.py +6 -1
  12. {divejson-0.36.0 → divejson-0.37.0}/docs/uddf-mapping.md +4 -4
  13. {divejson-0.36.0 → divejson-0.37.0}/docs/uddf-writing.md +5 -2
  14. {divejson-0.36.0 → divejson-0.37.0}/fixtures/README.md +2 -2
  15. {divejson-0.36.0/fixtures/write/uddf → divejson-0.37.0/fixtures/valid}/technical-dive.divejson +22 -1
  16. {divejson-0.36.0/fixtures/valid → divejson-0.37.0/fixtures/write/uddf}/technical-dive.divejson +22 -1
  17. {divejson-0.36.0 → divejson-0.37.0}/fixtures/write/uddf/technical-dive.uddf +10 -1
  18. {divejson-0.36.0 → divejson-0.37.0}/schema/1.0/divejson.schema.json +6 -5
  19. {divejson-0.36.0 → divejson-0.37.0}/tests/test_uddf_writing.py +21 -0
  20. divejson-0.36.0/SPEC_REF +0 -1
  21. {divejson-0.36.0 → divejson-0.37.0}/.github/scripts/release_bump.py +0 -0
  22. {divejson-0.36.0 → divejson-0.37.0}/.github/scripts/spec_pin.py +0 -0
  23. {divejson-0.36.0 → divejson-0.37.0}/.github/workflows/release.yml +0 -0
  24. {divejson-0.36.0 → divejson-0.37.0}/.gitignore +0 -0
  25. {divejson-0.36.0 → divejson-0.37.0}/LICENSE +0 -0
  26. {divejson-0.36.0 → divejson-0.37.0}/README.md +0 -0
  27. {divejson-0.36.0 → divejson-0.37.0}/divejson/cli.py +0 -0
  28. {divejson-0.36.0 → divejson-0.37.0}/divejson/codes.py +0 -0
  29. {divejson-0.36.0 → divejson-0.37.0}/divejson/conform.py +0 -0
  30. {divejson-0.36.0 → divejson-0.37.0}/divejson/converter.py +0 -0
  31. {divejson-0.36.0 → divejson-0.37.0}/divejson/fit.py +0 -0
  32. {divejson-0.36.0 → divejson-0.37.0}/divejson/py.typed +0 -0
  33. {divejson-0.36.0 → divejson-0.37.0}/divejson/registry.py +0 -0
  34. {divejson-0.36.0 → divejson-0.37.0}/divejson/series.py +0 -0
  35. {divejson-0.36.0 → divejson-0.37.0}/divejson/shearwater_db.py +0 -0
  36. {divejson-0.36.0 → divejson-0.37.0}/divejson/shearwater_xml.py +0 -0
  37. {divejson-0.36.0 → divejson-0.37.0}/divejson/ssrf.py +0 -0
  38. {divejson-0.36.0 → divejson-0.37.0}/divejson/suunto_json.py +0 -0
  39. {divejson-0.36.0 → divejson-0.37.0}/divejson/suunto_xml.py +0 -0
  40. {divejson-0.36.0 → divejson-0.37.0}/divejson/uddf.py +0 -0
  41. {divejson-0.36.0 → divejson-0.37.0}/divejson/validate.py +0 -0
  42. {divejson-0.36.0 → divejson-0.37.0}/divejson/xmlsource.py +0 -0
  43. {divejson-0.36.0 → divejson-0.37.0}/docs/converting.md +0 -0
  44. {divejson-0.36.0 → divejson-0.37.0}/docs/fit-mapping.md +0 -0
  45. {divejson-0.36.0 → divejson-0.37.0}/docs/shearwater-db-mapping.md +0 -0
  46. {divejson-0.36.0 → divejson-0.37.0}/docs/shearwater-xml-mapping.md +0 -0
  47. {divejson-0.36.0 → divejson-0.37.0}/docs/ssrf-mapping.md +0 -0
  48. {divejson-0.36.0 → divejson-0.37.0}/docs/suunto-json-mapping.md +0 -0
  49. {divejson-0.36.0 → divejson-0.37.0}/docs/suunto-xml-mapping.md +0 -0
  50. {divejson-0.36.0 → divejson-0.37.0}/docs/writing.md +0 -0
  51. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/garmin-connect-summary-first.divejson +0 -0
  52. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/garmin-connect-summary-first.fit +0 -0
  53. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/ocean-heart-rate.divejson +0 -0
  54. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/ocean-heart-rate.fit +0 -0
  55. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/ocean-poor-first-fix.divejson +0 -0
  56. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/ocean-poor-first-fix.fit +0 -0
  57. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/suunto-d5.divejson +0 -0
  58. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/suunto-d5.fit +0 -0
  59. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/suunto-ocean-2026.divejson +0 -0
  60. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/suunto-ocean-2026.fit +0 -0
  61. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/suunto-ocean.divejson +0 -0
  62. {divejson-0.36.0 → divejson-0.37.0}/fixtures/fit/suunto-ocean.fit +0 -0
  63. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/accommodation-dangling-reference.divejson +0 -0
  64. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/address-without-country.divejson +0 -0
  65. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/agency-other-missing.divejson +0 -0
  66. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/agency-retired.divejson +0 -0
  67. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/avg-depth-exceeds-max.divejson +0 -0
  68. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/bad-version.divejson +0 -0
  69. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/bbox-missing-corner.divejson +0 -0
  70. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/bbox-south-exceeds-north.divejson +0 -0
  71. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/bbox-without-position.divejson +0 -0
  72. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/boat-name-empty.divejson +0 -0
  73. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/boat-name-too-long.divejson +0 -0
  74. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/channel-length-mismatch.divejson +0 -0
  75. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/contact-position-incomplete.divejson +0 -0
  76. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/contact-roles-repeated.divejson +0 -0
  77. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/course-agency-other-without-agency.divejson +0 -0
  78. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/course-agency-retired.divejson +0 -0
  79. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/course-dates-reversed.divejson +0 -0
  80. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/current-unknown.divejson +0 -0
  81. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/cylinder-gear-dangling-reference.divejson +0 -0
  82. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/cylinder-gear-repeated.divejson +0 -0
  83. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/dangling-reference.divejson +0 -0
  84. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/deco-model-gf-order.divejson +0 -0
  85. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/device-empty-member.divejson +0 -0
  86. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/dive-duration.divejson +0 -0
  87. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/dive-profile-outside-recording.divejson +0 -0
  88. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/dive-readout-outside-recording.divejson +0 -0
  89. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/diver-email-too-long.divejson +0 -0
  90. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/diver-name-too-long.divejson +0 -0
  91. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/diver-username.divejson +0 -0
  92. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/duplicate-file-uuid-across-recordings.divejson +0 -0
  93. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/duplicate-file-uuid-portrait.divejson +0 -0
  94. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/duplicate-json-member.divejson +0 -0
  95. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/duplicate-uuid.divejson +0 -0
  96. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/emergency-contact-without-name.divejson +0 -0
  97. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/entry-type-unknown.divejson +0 -0
  98. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/event-without-type-or-label.divejson +0 -0
  99. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-id-identifier-empty.divejson +0 -0
  100. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-id-identifier-too-long.divejson +0 -0
  101. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-id-openstreetmap-form.divejson +0 -0
  102. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-id-registry-not-a-key.divejson +0 -0
  103. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-id-wikidata-form.divejson +0 -0
  104. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-id-without-identifier.divejson +0 -0
  105. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-id-without-registry.divejson +0 -0
  106. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-id-worms-form.divejson +0 -0
  107. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-ids-repeated-with-extensions.divejson +0 -0
  108. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/external-ids-repeated.divejson +0 -0
  109. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/gear-dive-time-negative.divejson +0 -0
  110. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/gear-material-unknown.divejson +0 -0
  111. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/gear-type-unknown.divejson +0 -0
  112. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/gear-volume-not-positive.divejson +0 -0
  113. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/gear-working-pressure-too-high.divejson +0 -0
  114. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/heart-rate-zero.divejson +0 -0
  115. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/instructor-dangling-reference.divejson +0 -0
  116. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/insurance-without-provider.divejson +0 -0
  117. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/location-full-name.divejson +0 -0
  118. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/missing-format.divejson +0 -0
  119. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/naive-exported-at.divejson +0 -0
  120. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/non-increasing-samples.divejson +0 -0
  121. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/null-member.divejson +0 -0
  122. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/oxygen-helium-sum.divejson +0 -0
  123. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/person-dangling-reference.divejson +0 -0
  124. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/person-referenced-twice.divejson +0 -0
  125. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/position-incomplete.divejson +0 -0
  126. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/pressure-order.divejson +0 -0
  127. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/profile-duration-short.divejson +0 -0
  128. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/rating-out-of-range.divejson +0 -0
  129. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/recording-without-content.divejson +0 -0
  130. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/schedule-interval-hours-not-positive.divejson +0 -0
  131. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/schedule-without-interval.divejson +0 -0
  132. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/sighting-count-and-abundance.divejson +0 -0
  133. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/sighting-dangling-reference.divejson +0 -0
  134. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/sighting-species-repeated.divejson +0 -0
  135. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-altitude-too-high.divejson +0 -0
  136. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-altitude-too-low.divejson +0 -0
  137. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-bbox-south-exceeds-north.divejson +0 -0
  138. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-depth-from-negative.divejson +0 -0
  139. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-depth-reversed.divejson +0 -0
  140. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-depth-to-negative.divejson +0 -0
  141. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-entry-type-unknown.divejson +0 -0
  142. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-entry-types-repeated.divejson +0 -0
  143. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-other-name-empty.divejson +0 -0
  144. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-other-name-repeats-name.divejson +0 -0
  145. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-other-name-too-long.divejson +0 -0
  146. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-other-names-repeated-by-case.divejson +0 -0
  147. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-other-names-repeated.divejson +0 -0
  148. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-tag-empty.divejson +0 -0
  149. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-tag-too-long.divejson +0 -0
  150. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-tags-repeated-by-case.divejson +0 -0
  151. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-tags-repeated.divejson +0 -0
  152. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/site-water-type-unknown.divejson +0 -0
  153. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/species-aphia-id.divejson +0 -0
  154. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/species-external-ids-empty.divejson +0 -0
  155. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/species-external-ids-repeated-with-extensions.divejson +0 -0
  156. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/species-no-identity.divejson +0 -0
  157. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/species-two-worms-entries.divejson +0 -0
  158. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/species-wikidata-qid.divejson +0 -0
  159. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/tag-empty.divejson +0 -0
  160. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/tag-too-long.divejson +0 -0
  161. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/tags-repeated-by-case.divejson +0 -0
  162. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/tags-repeated-by-whitespace.divejson +0 -0
  163. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/tags-repeated.divejson +0 -0
  164. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/trailing-newline-datetime.divejson +0 -0
  165. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/trip-dates-reversed.divejson +0 -0
  166. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/type-unknown.divejson +0 -0
  167. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/undefined-member.divejson +0 -0
  168. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/water-type-en13319.divejson +0 -0
  169. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/waves-unknown.divejson +0 -0
  170. {divejson-0.36.0 → divejson-0.37.0}/fixtures/invalid/weather-unknown.divejson +0 -0
  171. {divejson-0.36.0 → divejson-0.37.0}/fixtures/shearwater_db/perdix3-deco-dive-11.db +0 -0
  172. {divejson-0.36.0 → divejson-0.37.0}/fixtures/shearwater_db/perdix3-deco-dive-11.divejson +0 -0
  173. {divejson-0.36.0 → divejson-0.37.0}/fixtures/shearwater_db/perdix3-dives-1-and-8.db +0 -0
  174. {divejson-0.36.0 → divejson-0.37.0}/fixtures/shearwater_db/perdix3-dives-1-and-8.divejson +0 -0
  175. {divejson-0.36.0 → divejson-0.37.0}/fixtures/shearwater_xml/perdix3-deco-dive-11.divejson +0 -0
  176. {divejson-0.36.0 → divejson-0.37.0}/fixtures/shearwater_xml/perdix3-deco-dive-11.xml +0 -0
  177. {divejson-0.36.0 → divejson-0.37.0}/fixtures/shearwater_xml/perdix3-dive-8.divejson +0 -0
  178. {divejson-0.36.0 → divejson-0.37.0}/fixtures/shearwater_xml/perdix3-dive-8.xml +0 -0
  179. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/people.divejson +0 -0
  180. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/people.ssrf +0 -0
  181. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/refusals.divejson +0 -0
  182. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/refusals.ssrf +0 -0
  183. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/sites.divejson +0 -0
  184. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/sites.ssrf +0 -0
  185. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/subsurface.divejson +0 -0
  186. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/subsurface.ssrf +0 -0
  187. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/trip-grouping.divejson +0 -0
  188. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/trip-grouping.ssrf +0 -0
  189. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/two-computers.divejson +0 -0
  190. {divejson-0.36.0 → divejson-0.37.0}/fixtures/ssrf/two-computers.ssrf +0 -0
  191. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/d5-deco-max-depth.divejson +0 -0
  192. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/d5-deco-max-depth.json +0 -0
  193. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/d5-deep-stop-broken.divejson +0 -0
  194. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/d5-deep-stop-broken.json +0 -0
  195. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/d5-stop-alarms.divejson +0 -0
  196. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/d5-stop-alarms.json +0 -0
  197. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/header-only.divejson +0 -0
  198. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/header-only.json +0 -0
  199. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/not-a-dive.divejson +0 -0
  200. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/not-a-dive.json +0 -0
  201. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/ocean-deco-ppo2.divejson +0 -0
  202. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/ocean-deco-ppo2.json +0 -0
  203. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/ocean-heart-rate.divejson +0 -0
  204. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/ocean-heart-rate.json +0 -0
  205. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/ocean-poor-first-fix.divejson +0 -0
  206. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/ocean-poor-first-fix.json +0 -0
  207. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/ocean-tank-pressure.divejson +0 -0
  208. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/ocean-tank-pressure.json +0 -0
  209. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/purged-regulator.divejson +0 -0
  210. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/purged-regulator.json +0 -0
  211. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/suunto-d5.divejson +0 -0
  212. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/suunto-d5.json +0 -0
  213. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/suunto-ocean-2026.divejson +0 -0
  214. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/suunto-ocean-2026.json +0 -0
  215. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/suunto-ocean.divejson +0 -0
  216. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_json/suunto-ocean.json +0 -0
  217. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/freedive.divejson +0 -0
  218. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/freedive.xml +0 -0
  219. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/nitrox-deco.divejson +0 -0
  220. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/nitrox-deco.xml +0 -0
  221. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/refusals.divejson +0 -0
  222. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/refusals.xml +0 -0
  223. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/suunto-d5.divejson +0 -0
  224. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/suunto-d5.xml +0 -0
  225. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/unlabelled-pressure.divejson +0 -0
  226. {divejson-0.36.0 → divejson-0.37.0}/fixtures/suunto_xml/unlabelled-pressure.xml +0 -0
  227. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/conditions.divejson +0 -0
  228. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/conditions.uddf +0 -0
  229. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/contacts.divejson +0 -0
  230. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/contacts.uddf +0 -0
  231. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/divelogs.divejson +0 -0
  232. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/divelogs.uddf +0 -0
  233. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/gear.divejson +0 -0
  234. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/gear.uddf +0 -0
  235. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/legacy-writer.divejson +0 -0
  236. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/legacy-writer.uddf +0 -0
  237. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/mix-only-cylinder.divejson +0 -0
  238. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/mix-only-cylinder.uddf +0 -0
  239. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/opendiving.divejson +0 -0
  240. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/opendiving.uddf +0 -0
  241. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/owner-profile-only.divejson +0 -0
  242. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/owner-profile-only.uddf +0 -0
  243. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/people.divejson +0 -0
  244. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/people.uddf +0 -0
  245. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/shearwater-cloud-cns.divejson +0 -0
  246. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/shearwater-cloud-cns.uddf +0 -0
  247. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/shearwater-cloud.divejson +0 -0
  248. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/shearwater-cloud.uddf +0 -0
  249. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/sites.divejson +0 -0
  250. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/sites.uddf +0 -0
  251. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/subsurface.divejson +0 -0
  252. {divejson-0.36.0 → divejson-0.37.0}/fixtures/uddf/subsurface.uddf +0 -0
  253. {divejson-0.36.0 → divejson-0.37.0}/fixtures/valid/demo-logbook.divejson +0 -0
  254. {divejson-0.36.0 → divejson-0.37.0}/fixtures/valid/minimal.divejson +0 -0
  255. {divejson-0.36.0 → divejson-0.37.0}/fixtures/valid/two-computers.divejson +0 -0
  256. {divejson-0.36.0 → divejson-0.37.0}/fixtures/write/uddf/contacts.divejson +0 -0
  257. {divejson-0.36.0 → divejson-0.37.0}/fixtures/write/uddf/contacts.uddf +0 -0
  258. {divejson-0.36.0 → divejson-0.37.0}/fixtures/write/uddf/opendiving.divejson +0 -0
  259. {divejson-0.36.0 → divejson-0.37.0}/fixtures/write/uddf/opendiving.uddf +0 -0
  260. {divejson-0.36.0 → divejson-0.37.0}/fixtures/write/uddf/owner-profile-only.divejson +0 -0
  261. {divejson-0.36.0 → divejson-0.37.0}/fixtures/write/uddf/owner-profile-only.uddf +0 -0
  262. {divejson-0.36.0 → divejson-0.37.0}/fixtures/write/uddf/people.divejson +0 -0
  263. {divejson-0.36.0 → divejson-0.37.0}/fixtures/write/uddf/people.uddf +0 -0
  264. {divejson-0.36.0 → divejson-0.37.0}/pyproject.toml +0 -0
  265. {divejson-0.36.0 → divejson-0.37.0}/tests/fitbuild.py +0 -0
  266. {divejson-0.36.0 → divejson-0.37.0}/tests/fixtures/README.md +0 -0
  267. {divejson-0.36.0 → divejson-0.37.0}/tests/fixtures/uddf_3.2.2.xsd +0 -0
  268. {divejson-0.36.0 → divejson-0.37.0}/tests/helpers.py +0 -0
  269. {divejson-0.36.0 → divejson-0.37.0}/tests/shearwaterbuild.py +0 -0
  270. {divejson-0.36.0 → divejson-0.37.0}/tests/test_cli.py +0 -0
  271. {divejson-0.36.0 → divejson-0.37.0}/tests/test_conform.py +0 -0
  272. {divejson-0.36.0 → divejson-0.37.0}/tests/test_converter.py +0 -0
  273. {divejson-0.36.0 → divejson-0.37.0}/tests/test_findings.py +0 -0
  274. {divejson-0.36.0 → divejson-0.37.0}/tests/test_fit_fixtures.py +0 -0
  275. {divejson-0.36.0 → divejson-0.37.0}/tests/test_fit_parsing.py +0 -0
  276. {divejson-0.36.0 → divejson-0.37.0}/tests/test_fit_units.py +0 -0
  277. {divejson-0.36.0 → divejson-0.37.0}/tests/test_package.py +0 -0
  278. {divejson-0.36.0 → divejson-0.37.0}/tests/test_registry.py +0 -0
  279. {divejson-0.36.0 → divejson-0.37.0}/tests/test_release_bump.py +0 -0
  280. {divejson-0.36.0 → divejson-0.37.0}/tests/test_series.py +0 -0
  281. {divejson-0.36.0 → divejson-0.37.0}/tests/test_shearwater_db.py +0 -0
  282. {divejson-0.36.0 → divejson-0.37.0}/tests/test_shearwater_xml.py +0 -0
  283. {divejson-0.36.0 → divejson-0.37.0}/tests/test_sources.py +0 -0
  284. {divejson-0.36.0 → divejson-0.37.0}/tests/test_spec_pin.py +0 -0
  285. {divejson-0.36.0 → divejson-0.37.0}/tests/test_ssrf_fixtures.py +0 -0
  286. {divejson-0.36.0 → divejson-0.37.0}/tests/test_ssrf_parsing.py +0 -0
  287. {divejson-0.36.0 → divejson-0.37.0}/tests/test_ssrf_units.py +0 -0
  288. {divejson-0.36.0 → divejson-0.37.0}/tests/test_suunto_json_fixtures.py +0 -0
  289. {divejson-0.36.0 → divejson-0.37.0}/tests/test_suunto_json_parsing.py +0 -0
  290. {divejson-0.36.0 → divejson-0.37.0}/tests/test_suunto_json_units.py +0 -0
  291. {divejson-0.36.0 → divejson-0.37.0}/tests/test_suunto_xml_fixtures.py +0 -0
  292. {divejson-0.36.0 → divejson-0.37.0}/tests/test_suunto_xml_parsing.py +0 -0
  293. {divejson-0.36.0 → divejson-0.37.0}/tests/test_suunto_xml_units.py +0 -0
  294. {divejson-0.36.0 → divejson-0.37.0}/tests/test_uddf_fixtures.py +0 -0
  295. {divejson-0.36.0 → divejson-0.37.0}/tests/test_uddf_parsing.py +0 -0
  296. {divejson-0.36.0 → divejson-0.37.0}/tests/test_uddf_units.py +0 -0
  297. {divejson-0.36.0 → divejson-0.37.0}/tests/test_uddf_write_fixtures.py +0 -0
  298. {divejson-0.36.0 → divejson-0.37.0}/tests/test_validate.py +0 -0
  299. {divejson-0.36.0 → divejson-0.37.0}/tests/test_xmlsource.py +0 -0
@@ -4,6 +4,7 @@ on:
4
4
  push:
5
5
  branches: [main]
6
6
  pull_request:
7
+ merge_group:
7
8
 
8
9
  jobs:
9
10
  tests:
@@ -5,14 +5,17 @@ on:
5
5
  # `edited` is the one that matters: it re-runs the check when a title is
6
6
  # corrected, so a failing PR goes green without an empty commit to push.
7
7
  #
8
- # `synchronize` is not about the title at all - it is what would let this be
9
- # a required check. A required check has to have passed on the PR's *latest*
8
+ # `synchronize` is not about the title at all - it is what lets this be a
9
+ # required check. A required check has to have passed on the PR's *latest*
10
10
  # head SHA, so without a run per push, a PR that gains a second commit would
11
11
  # sit at "Expected - waiting for status" for good. The title is read from the
12
12
  # event payload rather than from the tree, so the extra runs reach the same
13
- # verdict. Nothing is required on `main` today; this keeps the option open at
14
- # no cost.
13
+ # verdict.
15
14
  types: [opened, edited, reopened, synchronize]
15
+ # The merge queue tests each entry squashed onto `main` under this event, and a
16
+ # required check that never reports there holds the entry until the queue times
17
+ # it out.
18
+ merge_group:
16
19
 
17
20
  # The one list of types. CONTRIBUTING.md spells the same list out in prose -
18
21
  # keep the two in step.
@@ -21,6 +24,10 @@ env:
21
24
 
22
25
  jobs:
23
26
  semantic-title:
27
+ # Only a pull request carries a title to check. An entry in the merge queue
28
+ # had to pass this on its pull request to be queued, and a job skipped by
29
+ # `if` reports success, which is what lets the queue go on without one.
30
+ if: github.event_name == 'pull_request'
24
31
  runs-on: ubuntu-latest
25
32
 
26
33
  # Nothing is checked out and no API call is made - the title arrives in the
@@ -12,19 +12,21 @@ name: Release bump
12
12
  # among them. A tag pushed with `GITHUB_TOKEN` would publish nothing and say nothing was
13
13
  # wrong: no error, no run, no release, just a tag sitting there.
14
14
  #
15
- # **The bump commit is made through the API.** `main`'s ruleset requires signatures, and a
16
- # runner's `git commit` is signed by nobody. GraphQL's `createCommitOnBranch` is used
15
+ # **The bump commit is made through the API.** Every branch but `main` requires signatures,
16
+ # and a runner's `git commit` is signed by nobody. GraphQL's `createCommitOnBranch` is used
17
17
  # rather than `git` because a commit it creates is signed by GitHub itself — documented
18
- # behaviour of that mutation, and the only way a runner gets a commit onto this branch.
18
+ # behaviour of that mutation, and the only way a runner gets a commit onto the release branch.
19
19
  #
20
- # **Through a pull request, and this app is not a bypass actor.** The ruleset's
21
- # `bypass_actors` is empty on purpose, and GitHub's bypass is ruleset-wide rather than
22
- # per-rule: an "always allow" entry for this app would also let it push unsigned commits,
23
- # force-push `main` and delete it — so a leaked private key could rewrite the history of a
24
- # package that publishes to PyPI by trusted publishing, and destroy the evidence of its own
25
- # use. The pull request costs nothing instead, because `main` requires zero approving
26
- # reviews: this workflow opens one and squash-merges it in the same run, with no rule
27
- # relaxed and no human in the loop. Squash is also the only merge method `main` allows.
20
+ # **Through a pull request, merged past the queue.** `main` requires a merge queue, and
21
+ # `gh pr merge` against it enqueues and returns before anything lands, which leaves nothing
22
+ # to tag. So this app is a bypass actor on `main`'s ruleset in `pull_request` mode and no
23
+ # wider: it may merge a pull request past the queue, and cannot push to `main`, force-push
24
+ # it or delete it. GitHub's bypass is ruleset-wide rather than per-rule, so an "always
25
+ # allow" entry would give it all three — and a leaked private key could rewrite the history
26
+ # of a package that publishes to PyPI by trusted publishing, and destroy the evidence of its
27
+ # own use. The pull request costs nothing, because `main` requires zero approving reviews:
28
+ # this workflow opens one, waits for its required checks and squash-merges it in the same
29
+ # run, with no human in the loop. Squash is also the only merge method `main` allows.
28
30
  #
29
31
  # **The tag goes on the squash commit.** Squash-merging writes a *new* commit on `main`;
30
32
  # the branch's own commit never lands there, and a tag on it would name a release nothing
@@ -213,6 +215,7 @@ jobs:
213
215
  url="$(gh pr create --repo "$GITHUB_REPOSITORY" --base main --head "$branch" \
214
216
  --title "$title" --body "$body")"
215
217
  echo "base=$base" >> "$GITHUB_OUTPUT"
218
+ echo "head=$commit" >> "$GITHUB_OUTPUT"
216
219
  echo "number=${url##*/}" >> "$GITHUB_OUTPUT"
217
220
  echo "$url"
218
221
 
@@ -223,30 +226,33 @@ jobs:
223
226
  VERSION: ${{ steps.bump.outputs.version }}
224
227
  NUMBER: ${{ steps.pr.outputs.number }}
225
228
  BASE: ${{ steps.pr.outputs.base }}
229
+ HEAD_OID: ${{ steps.pr.outputs.head }}
226
230
  run: |
227
231
  set -eo pipefail
228
232
 
229
- # Mergeability is computed asynchronously, so a merge attempted the instant the
230
- # pull request opens is refused for being UNKNOWN rather than for anything real.
231
- state=UNKNOWN
232
- for _ in $(seq 30); do
233
- state="$(gh pr view "$NUMBER" --repo "$GITHUB_REPOSITORY" --json mergeStateStatus --jq .mergeStateStatus)"
234
- [ "$state" = UNKNOWN ] || break
235
- sleep 4
236
- done
237
- case "$state" in
238
- # UNSTABLE is the ordinary answer here: the pull request's own CI is still
239
- # running, and nothing on `main` is a required check. What that CI would say,
240
- # `release.yml` asks again and harder once the tag exists — it rebuilds the
241
- # sdist, builds the wheel from it, and runs the whole corpus through the wheel
242
- # before a byte reaches PyPI — so waiting would buy a slower release and no
243
- # more certainty, on a commit that moves a version string and a heading.
244
- CLEAN|UNSTABLE|HAS_HOOKS) ;;
245
- *)
246
- echo "::error::the pull request is $state and cannot be merged. BLOCKED means a rule on main wants something this app cannot give — read the ruleset before relaxing anything here."
233
+ # Every required check runs on this pull request, so it is BLOCKED until they report,
234
+ # and mergeability is computed asynchronously besides. Only CLEAN goes on. DIRTY and
235
+ # DRAFT cannot become CLEAN on their own, and BEHIND cannot arise while the
236
+ # required-checks rule is not strict. The app reads this field as a bypass actor and
237
+ # takes it to report the rules' own verdict rather than what the viewer may bypass:
238
+ # BLOCKED still means an outstanding check, never a merge this token could force.
239
+ deadline=$(( SECONDS + 900 ))
240
+ while true; do
241
+ state="$(gh pr view "$NUMBER" --repo "$GITHUB_REPOSITORY" --json mergeStateStatus --jq .mergeStateStatus)" || state=UNREADABLE
242
+ echo "$(date -u +%H:%M:%S) #$NUMBER: $state"
243
+ case "$state" in
244
+ CLEAN) break ;;
245
+ DIRTY|DRAFT|BEHIND)
246
+ echo "::error::the pull request is $state, which waiting cannot fix. Nothing was merged; the pull request is open."
247
+ exit 1
248
+ ;;
249
+ esac
250
+ if [ "$SECONDS" -ge "$deadline" ]; then
251
+ echo "::error::after 15 minutes the pull request is still $state. Nothing was merged; it is open. See what it is waiting for: an outstanding check, or an approval this app cannot give if main's ruleset has been raised above zero approvals."
247
252
  exit 1
248
- ;;
249
- esac
253
+ fi
254
+ sleep 15
255
+ done
250
256
 
251
257
  # The version was computed from `main` at $BASE. If `main` has moved since, the
252
258
  # squash commit would carry work this run never read, under a version that does
@@ -257,19 +263,30 @@ jobs:
257
263
  exit 1
258
264
  fi
259
265
 
260
- # No --subject: the repository's squash subject source is PR_TITLE, so the title
261
- # checked by `pr-title.yml` is the subject that lands on `main`.
262
- gh pr merge "$NUMBER" --repo "$GITHUB_REPOSITORY" --squash
266
+ # The REST merge rather than `gh pr merge`, which enqueues on a branch whose ruleset
267
+ # requires a merge queue and returns before anything lands. `sha` is the head this run
268
+ # committed, so a branch somebody pushed to meanwhile is refused rather than merged.
269
+ # No subject: the repository's squash subject source is PR_TITLE, so the title checked
270
+ # by `pr-title.yml` is the subject that lands on `main`. A merge call that fails may
271
+ # still have merged, so the failure asks the pull request what happened.
272
+ merged="$(gh api -X PUT "repos/$GITHUB_REPOSITORY/pulls/$NUMBER/merge" \
273
+ -f merge_method=squash -f "sha=$HEAD_OID" --jq '.sha // empty')" || merged=""
274
+ if [ -z "$merged" ]; then
275
+ merge_state="$(gh pr view "$NUMBER" --repo "$GITHUB_REPOSITORY" --json state --jq .state)" || merge_state=UNREADABLE
276
+ if [ "$merge_state" != MERGED ]; then
277
+ echo "::error::the pull request could not be merged, and it is $merge_state."
278
+ exit 1
279
+ fi
280
+ fi
263
281
 
264
- # The squash commit, not the branch's. GitHub names it a moment after the merge.
265
- # A call that fails is one lost attempt rather than the end of the step: the merge
266
- # above has already happened, so from here on a bad gateway must cost a few
282
+ # The squash commit, when the merge call's answer was lost: GitHub names it a moment
283
+ # after the merge. A call that fails is one lost attempt rather than the end of the
284
+ # step: the merge has already happened, so from here on a bad gateway must cost a few
267
285
  # seconds and not the release.
268
- merged=""
269
286
  for _ in $(seq 30); do
270
- merged="$(gh pr view "$NUMBER" --repo "$GITHUB_REPOSITORY" --json mergeCommit --jq '.mergeCommit.oid // empty')" || merged=""
271
287
  [ -z "$merged" ] || break
272
- sleep 2
288
+ merged="$(gh pr view "$NUMBER" --repo "$GITHUB_REPOSITORY" --json mergeCommit --jq '.mergeCommit.oid // empty')" || merged=""
289
+ [ -n "$merged" ] || sleep 2
273
290
  done
274
291
  if [ -z "$merged" ]; then
275
292
  echo "::error::merged, but GitHub has not named the squash commit, so this run does not know which commit to tag. The bump is on main and nothing is published. Finish it by hand once the merge commit is visible: git fetch origin && git tag -a v$VERSION -m \"divejson $VERSION\" origin/main && git push origin v$VERSION"
@@ -0,0 +1,38 @@
1
+ # divejson-py
2
+
3
+ Read [CONTRIBUTING.md](CONTRIBUTING.md) before changing an adapter, especially "What is here, and
4
+ what is only borrowed". The specification and format decisions belong in
5
+ [divejson/divejson](https://github.com/divejson/divejson).
6
+
7
+ ## Vendored files
8
+
9
+ Files in schema/, fixtures/ and docs/ that the specification already owns must match SPEC_REF.
10
+ Change those files in the specification repository, then update SPEC_REF and re-vendor together.
11
+ Verify byte equality separately from the ancestry check. A genuinely new reader or writer may carry
12
+ new mappings and pairs before the specification adopts them, as CONTRIBUTING.md describes; that
13
+ exception does not permit changing an existing specification-owned file here.
14
+
15
+ For an existing mapping change, follow the documented spec-first merge order. Link companion PRs
16
+ and state which merge or release each depends on. While the specification PR's CI installs a commit
17
+ from this branch, add new commits rather than amending or force-pushing, so the pinned commit stays
18
+ reachable. Re-pin to the merged specification commit before merging here.
19
+
20
+ ## Importer verification
21
+
22
+ New mappings need a shareable fixture from the real writer, with expected output. A field no file
23
+ shows stays unmapped or is marked untested in place. Verify source units, destination scales, invalid
24
+ sentinels, recording origins and multi-session behavior independently. For FIT changes, event
25
+ placement follows the Events section of `docs/fit-mapping.md`. Never lose a dive's samples silently:
26
+ report what the reader cannot carry, and refuse the file only where the mapping document says to.
27
+
28
+ Annotate conversion tables with the types they hold, give scale factors a named constant, and test
29
+ scaling separately from event or sample ordering. When a reader gains a channel, add it to the label
30
+ table the reader uses (`_READING_LABELS` in `fit.py`, `CHANNEL_LABELS` in `series.py`), so the collision
31
+ note names it rather than printing the raw key. Search source comments and mapping prose for stale
32
+ factual claims when adding fixture coverage, and add the Unreleased changelog entry.
33
+ Run the commands under CONTRIBUTING.md's "Working on the package"; the installed-wheel check runs
34
+ in CI.
35
+
36
+ For review fixes, inspect review bodies, inline comments and discussion attachments. Reconcile each
37
+ item with the final diff, comments and PR description, including fixture provenance and validation
38
+ results. State remaining verification or dependency blockers rather than calling them complete.
@@ -7,6 +7,17 @@ this file is about the package, whose version moves independently.
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 0.37.0
11
+
12
+ - **The gear types `undergarment`, `tech_shorts` and `slate`.** §6.12 of
13
+ [the specification](https://github.com/divejson/divejson/blob/main/spec/divejson.md)
14
+ names what is worn under a drysuit for warmth, the pocket shorts worn over a suit, and
15
+ anything a diver writes on underwater, and says that a `vest` is the neoprene layer worn
16
+ with a wetsuit, so `divejson validate` accepts the three. The UDDF writer writes each as a
17
+ `<variouspieces>`, which reads back as `other`, and reports the type as one that did not
18
+ survive; an undergarment and the shorts are not written as a `<suit>`, which the reader
19
+ would bring back as a wetsuit. The reader does not change.
20
+
10
21
  ## 0.36.0
11
22
 
12
23
  - **Breaking: the certification and course agencies gain `cdaa`, `isc` and `ise`, and give up
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -186,7 +186,9 @@ specification already owns cannot be regenerated here: that change starts over t
186
186
  Use a semantic **PR title** — `<type>[(scope)][!]: <description>`, where type is one of
187
187
  `feat`, `fix`, `refactor`, `docs`, `test`, `chore`, `perf`, `ci`, `build`, `revert`.
188
188
  Pull requests are squash-merged with the title as the commit subject, so it is the only
189
- part of a branch that outlives the branch.
189
+ part of a branch that outlives the branch. A branch never needs to be current with `main`:
190
+ a maintainer adds a green pull request to the merge queue, which squashes it onto `main` as
191
+ it then stands, runs the required checks on that result and lands it.
190
192
 
191
193
  `.github/workflows/pr-title.yml` checks the format and re-runs when a title is edited —
192
194
  a failing check is fixed by correcting the title, with nothing to push.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: divejson
3
- Version: 0.36.0
3
+ Version: 0.37.0
4
4
  Summary: Validator, converters and conformance runner for DiveJSON, an open dive-log interchange format
5
5
  Project-URL: Homepage, https://divejson.org
6
6
  Project-URL: Repository, https://github.com/divejson/divejson-py
@@ -0,0 +1 @@
1
+ 5bb40c6810d30a8674d377443ab1790e1d4c3a4a
@@ -25,7 +25,7 @@ specification commit named in the repository's ``SPEC_REF``, so that an installe
25
25
  resolves its own schema and needs no checkout of anything.
26
26
  """
27
27
 
28
- __version__ = "0.36.0"
28
+ __version__ = "0.37.0"
29
29
 
30
30
  SPEC_VERSION = "1.0"
31
31
 
@@ -134,7 +134,9 @@ _INDENT = " "
134
134
  # instead, on the grounds that they are cutting tools; this one does not, because `<knife>`
135
135
  # asserts a knife where `<variouspieces>` asserts nothing, and a converter's job is to lose
136
136
  # the type honestly rather than to substitute a near one. An element naming the broader
137
- # kind, as the BCD's does for a wing, is not a near one: it says nothing false.
137
+ # kind, as the BCD's does for a wing, is not a near one: it says nothing false. For the
138
+ # same reason an undergarment and tech shorts are not a `<suit>` of `<suittype>other`: the
139
+ # reader brings that suit back as a wetsuit.
138
140
  _EQUIPMENT_ELEMENT: dict[str, str] = {
139
141
  "mask": "mask",
140
142
  "snorkel": "variouspieces",
@@ -142,9 +144,11 @@ _EQUIPMENT_ELEMENT: dict[str, str] = {
142
144
  "wetsuit": "suit",
143
145
  "drysuit": "suit",
144
146
  "vest": "variouspieces",
147
+ "undergarment": "variouspieces",
145
148
  "hood": "variouspieces",
146
149
  "gloves": "gloves",
147
150
  "boots": "boots",
151
+ "tech_shorts": "variouspieces",
148
152
  "bcd": "buoyancycontroldevice",
149
153
  "backplate": "variouspieces",
150
154
  "wing": "buoyancycontroldevice",
@@ -164,6 +168,7 @@ _EQUIPMENT_ELEMENT: dict[str, str] = {
164
168
  "line_cutter": "variouspieces",
165
169
  "shears": "variouspieces",
166
170
  "compass": "compass",
171
+ "slate": "variouspieces",
167
172
  # `cameraType` extends `ID_TYPE` rather than `namedType`, so a `<camera>` has no
168
173
  # `<name>` at all and could carry only a nameless body-and-lens breakdown. A named
169
174
  # camera is a `<variouspieces>`, and the type is reported as not carried.
@@ -478,10 +478,10 @@ service performed — which is what §6.14 and §6.15 are.
478
478
  The last row is translation rather than invention: `<variouspieces>` is UDDF's own
479
479
  catch-all, a weight belt's quantity is the dive's `weight` (§6.2), a watch is a computer or
480
480
  jewellery, and a compressor is not kit carried on a dive — so none of the three earns a
481
- value of its own. UDDF has no element for a `transmitter` or a `backplate`, which are
482
- written as `<variouspieces>` ([`uddf-writing.md`](uddf-writing.md)) and so come back as
483
- `other`; a `wing` is written as the buoyancy control device it is, and so comes back as
484
- `bcd`. `<equipmentconfiguration>` is skipped — it describes how the pieces are rigged
481
+ value of its own. UDDF has no element for a `transmitter`, a `backplate`, an
482
+ `undergarment`, `tech_shorts` or a `slate`, which are written as `<variouspieces>`
483
+ ([`uddf-writing.md`](uddf-writing.md)) and so come back as `other`; a `wing` is written as
484
+ the buoyancy control device it is, and so comes back as `bcd`. `<equipmentconfiguration>` is skipped — it describes how the pieces are rigged
485
485
  together, not a piece.
486
486
 
487
487
  **`<divecomputer>` is one element read two ways.** It is a piece of kit the diver owns, and
@@ -189,7 +189,7 @@ reported.
189
189
  | `cylinder` | `tank` | itself |
190
190
  | `wetsuit`, `drysuit` | `suit`, with `<suittype>` | itself |
191
191
  | `other` | `variouspieces` | itself |
192
- | `snorkel`, `vest`, `hood`, `smb`, `mirror`, `whistle`, `reel`, `camera`, `line_cutter`, `shears`, `transmitter`, `backplate` | `variouspieces` | `other` |
192
+ | `snorkel`, `vest`, `undergarment`, `hood`, `tech_shorts`, `smb`, `mirror`, `whistle`, `reel`, `slate`, `camera`, `line_cutter`, `shears`, `transmitter`, `backplate` | `variouspieces` | `other` |
193
193
 
194
194
  `camera` is in the last row for a schema reason rather than a vocabulary one: `cameraType`
195
195
  extends `ID_TYPE` rather than `namedType`, so a `<camera>` has no `<name>` at all and could
@@ -215,7 +215,10 @@ catch-all beside the SMB reads worse. A converter does not, because `<knife>` as
215
215
  knife where `<variouspieces>` asserts nothing — losing a type honestly beats substituting a
216
216
  near one, and the report is what makes the loss visible either way. An element naming the
217
217
  type's broader kind is not a near one: `<buoyancycontroldevice>` says nothing of a wing that
218
- is not true of it, which is why a wing goes there rather than to the catch-all.
218
+ is not true of it, which is why a wing goes there rather than to the catch-all. The same rule
219
+ keeps an `undergarment` and `tech_shorts` out of `<suit>`, though its `<suittype>` of `other`
220
+ looks like room for either: a reader brings back every `<suit>` that is not a dry one as a
221
+ `wetsuit` ([`uddf-mapping.md`](uddf-mapping.md)), a near type substituted for the true one.
219
222
 
220
223
  **`equipmentType` is an `xs:sequence`, so a logbook's gear comes back grouped by type**
221
224
  rather than in the order the document listed it. Nothing is lost by that — every piece keeps
@@ -34,7 +34,7 @@ what makes a fixture dropped into this tree impossible to ignore.
34
34
  | `minimal.divejson` | The smallest conforming document: `format`, `version`, `exported_at` — no diver (a source that records nothing about its owner omits the member), no collections (absent ≡ empty). |
35
35
  | `demo-logbook.divejson` | A real export of the reference writer's demo account (all names are seeded demo data; pulled 2026-09-02, courses-era writer): 8 dives, one carrying a recording with its device, its stored file and a full sampled profile, which is what a dive imported from a computer file looks like — sites, trips, an empty `courses` collection, gear with a service history, certifications, and producer extensions carrying application-specific values. Its device is written by hand: the export predates recordings, and the file it names was read by the `suunto_json` parser, so the device is what that reader takes from such a file. So are the diver's `phone`, `born_on`, `emergency_contacts` and `insurances`, one element in each array, which the export predates as well. Its profile axis is in milliseconds, multiplied by hand from the seconds the export wrote, and its root `extensions` carries, under the writer's producer key, the `profile_axis` marker that writer emits beside a millisecond axis and its own reader keys on — added by hand the same way, a value of the same kind as the `units` its diver carries. Its temperature samples are in hundredths of a degree, multiplied by hand from the tenths the export wrote, and beside the axis marker sits the `profile_temperature_scale` marker of `100` that writer emits with them, added by hand the same way. Its one **contact** is added by hand the same way — Blue Lagoon Divers, which the diver's two PADI cards name, with every member of §6.18 but `extensions` — and referenced from the four hosts the file has: the Tenerife week's three dives, both cards, the service record, whose `performed_by` names the technician beside it, and that trip's part as its accommodation. Its `courses` being empty, the fifth host is `technical-dive.divejson`'s. Its one **person** is added by hand the same way, with every member of §6.20 but `extensions`, a name carrying a non-ASCII letter, and referenced as a `buddy` from the first Tenerife dive and from that trip. Regenerate from a fresh export when the writer changes. |
36
36
  | `two-computers.divejson` | Hand-built coverage of §6.4a, and of the half of it no converter can reach: a dive with **two** recordings that both carry a profile — `ssrf/two-computers.ssrf` reaches that much from one file — where the first holds **two** `source_files`, one recording the app exported twice, as JSON beside FIT, each file read by a different parser. Its second recording carries its own `started_at`, 31.33 s after the dive's, so its samples sit on their own axis. Each recording carries its own **readouts** (§6.4a), and they differ — the two answers a dive gets from two computers, which no converted pair reaches: the first carries a surface pressure and both ends of both oxygen clocks, its CNS and OTU ends being the ones the same dive's FIT export states, and the second a surface pressure of its own and nothing else. Its two devices differ in every way §6.4b allows two devices to differ, and the second computer's deepest sample is deeper than the dive's logged `max_depth`, which is the ordinary disagreement between two devices rather than a defect. It has no pair: §6.7's stored-file records are the application's and no reader produces one, which is the point of it. It is also where the two halves of §6.4c the other hand-built file cannot reach live: its first recording runs an RGBM model named in words with a **negative** `conservatism` and no gradient factors, the shape a Suunto states, while its second is in **`gauge`** mode and carries no `deco_model` at all — a computer run as a bottom timer runs no decompression model, and saying so is not the same as saying nothing. Between the two files every member of §6.4c's table and two of §6.4a's five `mode` values are exercised by a document no converter wrote; `freedive` comes from `suunto_xml/freedive.xml`, and `closed_circuit` and `semi_closed` wait for a file, no source in hand stating either. |
37
- | `technical-dive.divejson` | Hand-built coverage of what the demo corpus lacks: trimix, a sidemount pair (two cylinders, one blend, `usage: "parallel"`, each linked to a vessel of its own), staged deco cylinders, gas-switch events, a ceiling channel with a gap, per-cylinder pressure channels, a `heart_rate` channel whose one dropout is a gap in its `times` rather than a zero, a `+12:45` UTC offset **and** an offset-less local `started_at` (§5.2's third state), a dive with no recorded time in the water, a third dive whose `started_at` is a **date** — logged by hand with the day and no time of day (§5.2) — and whose one recording carries nothing but the `cns_end` copied off the computer, the readout-only recording §6.4a allows, three **species** — the black coral carrying a `worms` and a `wikidata` entry beside its names, two registries on one taxon; a common-name-only one; and one with **no name**, carrying two entries under one registry the format does not name, which is the arm of §6.11's identity rule nothing else here satisfies alone and the several entries of one registry that the one-`worms`-entry bound leaves open to every other — and three **sightings**, one per way §6.3a spells how many: the black coral's carrying a `count` and `notes`, and on the second dive the carpet shark's an `abundance` band and the nameless species' neither, seen and not counted — a first dive carrying a `type`, a `rating`, three `tags`, an `air_temperature`, a `current`, `waves`, `weather`, an `entry_type` of `boat` and that boat's `boat_name` (§6.2) — a trip of three parts — a place with dates, a place with none, and dates with no place — the second of them carrying an antimeridian-crossing bounding box, the corpus's only **dive site whose locality is filled in** — a centre and a box on `location`, beside the site's own pin at a different point, which is the pair §6.10 exists to keep apart — and the same site the corpus's only one carrying the rest of §6.10: two `other_names`, three `external_ids` — one under `openstreetmap`, one under `wikidata` and one under a registry the format does not name, carrying `extensions` — a depth range, a `water_type`, an `altitude` of `0` and two `entry_types` and `tags` — an `agency: "other"` certification with `front_file`/`back_file`, an `aida` one and an `isc` one, values §6.16's vocabulary gained after its seed, a service interval on dives and on hours of diving at once, three courses — a completed `"other"`-agency course linked from a dive and its certification, an unreferenced `"planned"` `cdaa` one with no dates, and one with **no `agency`**, the private-instructor case §6.17 leaves the member out for — a lowercase-`z`, one-digit-fraction `created_at` (both spellings the grammar allows and naive parsers reject), and a `bookmark` 85 s **past** `profile.duration` — the surface-marker case §6.4 blesses, which the pre-2026-09-04 validator rejected, and which also carries a `label` beside a `type`, the pairing §6.6 asks for on any value defined after 1.0. Its recording's device carries **all six** of §6.4b's members, hand-built like the rest of the file. Its diver carries an emergency contact, an insurance with a `number` and a `portrait_file`, the three members of §6.1 UDDF has no element for. It is also the **decompression** fixture: `mode: "open_circuit"` and a Bühlmann `deco_model` with a name and a 30/70 gradient-factor pair, the recording's five readouts, a `salinity` of `en13319` on a dive whose `water_type` is `salt` — the setting and the water being two facts (§6.4a) — and all six of §6.4's readout channels sampled on the depth channel's own times — an `ndl` that runs from the 99-minute display cap down to zero and back, a zero `ndl` at the same second as a `ceiling` (the coexistence §6.4 blesses), a `tts` present only while there is an obligation, a `ppo2` that climbs through three gases, a `cns` whose ends are the recording's own `cns_start` and `cns_end`, and a `surface_gradient_factor` above 100 with the `gradient_factor` beside it far below. Its profile's `extensions` carries a tissue-loading array, which is what §6.4c says tissue state rides until a reader can compute from it. Its one **contact** carries every member of §6.18 and §6.19, `extensions` included, and is referenced from all five hosts: the first dive, the completed course and its card, the service record, whose `performed_by` names the technician beside it, and the first trip part, as where the diver stayed. Its four **people** reach every host §6.20 has and every value of its `role` but `guide`: J. Harbord, carrying every member, `extensions` included under an example producer key, is the completed course's `instructor`, its card's `instructor_uuid` and the first dive's `instructor`; a fellow student is that course's and that dive's `student`, the second dive's `buddy`, the third dive's reference with **no** `role`, and the trip's `buddy` beside a one-word `companion` who never dived; and the private course names its own instructor. Its **gear** is where §6.3's vessel link and §6.12's vessel facts live: each cylinder of the sidemount pair links a 12 L, 232 bar steel of its own, and the Twin 12 manifold carries its own facts — 24 L, 232 bar, steel — and a `dive_time` beside its `dive_count`, linked from no cylinder and listed in no dive's `gear_uuids`, since a twinset beside a sidemount pair on two 12 L supplies would contradict §6.3's rule that an entry is one gas supply; its figures stay the source logbook's. The twinset's schedule carries `interval_hours`, `dive_time_at_start` and `next_due_at_dive_time` beside their count twins and its record `dive_time_at_service`, and one sidemount steel carries a schedule whose **only** interval is `interval_hours`, the arm of §6.14's at-least-one rule nothing else here satisfies alone. Its steel `backplate` and doubles `wing` are the corpus's only items of either type, a rig recorded as its parts, and the gear set lists both beside the twinset and the drysuit. |
37
+ | `technical-dive.divejson` | Hand-built coverage of what the demo corpus lacks: trimix, a sidemount pair (two cylinders, one blend, `usage: "parallel"`, each linked to a vessel of its own), staged deco cylinders, gas-switch events, a ceiling channel with a gap, per-cylinder pressure channels, a `heart_rate` channel whose one dropout is a gap in its `times` rather than a zero, a `+12:45` UTC offset **and** an offset-less local `started_at` (§5.2's third state), a dive with no recorded time in the water, a third dive whose `started_at` is a **date** — logged by hand with the day and no time of day (§5.2) — and whose one recording carries nothing but the `cns_end` copied off the computer, the readout-only recording §6.4a allows, three **species** — the black coral carrying a `worms` and a `wikidata` entry beside its names, two registries on one taxon; a common-name-only one; and one with **no name**, carrying two entries under one registry the format does not name, which is the arm of §6.11's identity rule nothing else here satisfies alone and the several entries of one registry that the one-`worms`-entry bound leaves open to every other — and three **sightings**, one per way §6.3a spells how many: the black coral's carrying a `count` and `notes`, and on the second dive the carpet shark's an `abundance` band and the nameless species' neither, seen and not counted — a first dive carrying a `type`, a `rating`, three `tags`, an `air_temperature`, a `current`, `waves`, `weather`, an `entry_type` of `boat` and that boat's `boat_name` (§6.2) — a trip of three parts — a place with dates, a place with none, and dates with no place — the second of them carrying an antimeridian-crossing bounding box, the corpus's only **dive site whose locality is filled in** — a centre and a box on `location`, beside the site's own pin at a different point, which is the pair §6.10 exists to keep apart — and the same site the corpus's only one carrying the rest of §6.10: two `other_names`, three `external_ids` — one under `openstreetmap`, one under `wikidata` and one under a registry the format does not name, carrying `extensions` — a depth range, a `water_type`, an `altitude` of `0` and two `entry_types` and `tags` — an `agency: "other"` certification with `front_file`/`back_file`, an `aida` one and an `isc` one, values §6.16's vocabulary gained after its seed, a service interval on dives and on hours of diving at once, three courses — a completed `"other"`-agency course linked from a dive and its certification, an unreferenced `"planned"` `cdaa` one with no dates, and one with **no `agency`**, the private-instructor case §6.17 leaves the member out for — a lowercase-`z`, one-digit-fraction `created_at` (both spellings the grammar allows and naive parsers reject), and a `bookmark` 85 s **past** `profile.duration` — the surface-marker case §6.4 blesses, which the pre-2026-09-04 validator rejected, and which also carries a `label` beside a `type`, the pairing §6.6 asks for on any value defined after 1.0. Its recording's device carries **all six** of §6.4b's members, hand-built like the rest of the file. Its diver carries an emergency contact, an insurance with a `number` and a `portrait_file`, the three members of §6.1 UDDF has no element for. It is also the **decompression** fixture: `mode: "open_circuit"` and a Bühlmann `deco_model` with a name and a 30/70 gradient-factor pair, the recording's five readouts, a `salinity` of `en13319` on a dive whose `water_type` is `salt` — the setting and the water being two facts (§6.4a) — and all six of §6.4's readout channels sampled on the depth channel's own times — an `ndl` that runs from the 99-minute display cap down to zero and back, a zero `ndl` at the same second as a `ceiling` (the coexistence §6.4 blesses), a `tts` present only while there is an obligation, a `ppo2` that climbs through three gases, a `cns` whose ends are the recording's own `cns_start` and `cns_end`, and a `surface_gradient_factor` above 100 with the `gradient_factor` beside it far below. Its profile's `extensions` carries a tissue-loading array, which is what §6.4c says tissue state rides until a reader can compute from it. Its one **contact** carries every member of §6.18 and §6.19, `extensions` included, and is referenced from all five hosts: the first dive, the completed course and its card, the service record, whose `performed_by` names the technician beside it, and the first trip part, as where the diver stayed. Its four **people** reach every host §6.20 has and every value of its `role` but `guide`: J. Harbord, carrying every member, `extensions` included under an example producer key, is the completed course's `instructor`, its card's `instructor_uuid` and the first dive's `instructor`; a fellow student is that course's and that dive's `student`, the second dive's `buddy`, the third dive's reference with **no** `role`, and the trip's `buddy` beside a one-word `companion` who never dived; and the private course names its own instructor. Its **gear** is where §6.3's vessel link and §6.12's vessel facts live: each cylinder of the sidemount pair links a 12 L, 232 bar steel of its own, and the Twin 12 manifold carries its own facts — 24 L, 232 bar, steel — and a `dive_time` beside its `dive_count`, linked from no cylinder and listed in no dive's `gear_uuids`, since a twinset beside a sidemount pair on two 12 L supplies would contradict §6.3's rule that an entry is one gas supply; its figures stay the source logbook's. The twinset's schedule carries `interval_hours`, `dive_time_at_start` and `next_due_at_dive_time` beside their count twins and its record `dive_time_at_service`, and one sidemount steel carries a schedule whose **only** interval is `interval_hours`, the arm of §6.14's at-least-one rule nothing else here satisfies alone. Its steel `backplate` and doubles `wing` are a rig recorded as its parts, and beside them it carries one item each of `undergarment`, `tech_shorts` and `slate`; the gear set lists all five beside the twinset and the drysuit. |
38
38
 
39
39
  ## invalid/
40
40
 
@@ -373,7 +373,7 @@ reaches.
373
373
  | file | written from | what it covers |
374
374
  | --- | --- | --- |
375
375
  | `opendiving.divejson` | `uddf/opendiving.divejson`, plus a device | The round trip that matters most, and the pair that exercises almost none of the report: this document is itself the *reading* of a UDDF export, so there is nothing in it UDDF cannot hold, and the only finding is the `extensions` exclusion every written file carries. `dive-<uuid>` ids that come back as those uuids, a trip of one part, written back with its dates and with its place in both the `<name>` and the `<geography><location>`, where the source's `<name>` held a label the reading reported, a kit list under `<equipment>` with per-dive `<equipmentused>` links, two cylinders on two gases with their pressure channels, a `<switchmix>` gas switch and a `<setmarker>`. And the **fold**: its dive lists that `computer` gear item, which satisfies the predicate's link leg, and its recording's device and the gear item carry the same serial, so the serial leg fires and the two become one `<divecomputer>` element carrying both halves, with the device's counter on the dive as `<internaldivenumber>`. It is the corpus's only pair that reaches the serial leg. **No pair reaches the link leg refusing** — a `computer` gear item the document carries and one of its own dives does not link — so that branch has no pair either way, and [`docs/uddf-writing.md`](../docs/uddf-writing.md) writes it down rather than leaving it to the first writer to meet one. Its diver's `born_on`, `phone` and insurance are written to `<birthdate>`, `<contact><phone>` and `<diveinsurances>`, which puts a `<contact>` between `<personal>` and `<equipment>` and the insurances after the kit list, the order `personType` fixes. |
376
- | `technical-dive.divejson` | `valid/technical-dive.divejson` | Everything the first one cannot reach, being hand-built to hold what no UDDF export carries. The `dropped` half of the report: `courses`, `certifications`, `gear_sets` and gear service, which UDDF has no slot for; `species` and the dives' sightings, whose slot a writer could fill only by inventing a class for each; `role` and `usage` on a sidemount pair and its staged deco cylinders; a ceiling channel; a trip part's bounding box, and a dive site's locality entire but for its name — its centre and its box, which is two findings off one record where a part loses one; the gas numbering UDDF cannot record; `shears` and the `backplate` landing in `<variouspieces>` and reading back as `other`, and the `wing` landing in `<buoyancycontroldevice>` and reading back as `bcd`, each reported; a `bookmark` carrying a label, which keeps its type and loses the label; an event with a label and no type, which goes out as a `<setmarker>` carrying the label; the `deco_model`, `tts` and `surface_gradient_factor` its document now carries, each reported `dropped` — the first because UDDF's `<decomodel>` requires a tissue table this format has no member for, the other two because UDDF has no element at all; an empty note, which no UDDF file can spell; a device's `firmware`, for which `equipmentPieceType` has no element; and the diver's `emergency_contacts` and `portrait_file` and an insurance's `number`, which UDDF has no element for either — the insurance itself is written, as a `<diveinsurances>` entry carrying its provider. Its first dive's `type`, `rating`, `air_temperature` and `current` are written — `<apparatus>open-scuba</apparatus>` after the kit, a `<ratingvalue>` of `8`, twice the five-step rating, a Kelvin `<airtemperature>` after the `<datetime>` and `moderate-current` — and its `tags`, `waves`, `weather` and `boat_name` are each reported `dropped`, UDDF having no element for any of them; so is its `entry_type` of `boat`, since UDDF's boats are small, charter, live-aboard or a barge, and writing any of them would describe a boat the document does not. Its gear carries the vessel half of §6.3 and §6.12: the twinset and the two sidemount steels go out as `<tank>` pieces carrying `<tankmaterial>` and then `<tankvolume>` after their names, each piece's `working_pressure` and `dive_time` reported `dropped`, and the sidemount pair's two `<tankdata>` each carry a second `<link>`, to its vessel, after the mix's and beside its own `<tankvolume>`; the twinset, linked from no cylinder and on no dive's list, has no `<equipmentused>` link. Its heart rate is written, as a `<pulserate>` in beats per second after the waypoint's `<divetime>` — a whole beat over 60 being no number UDDF can state exactly, so a reader multiplying back rounds to the beat it was. It is also the **other** half of the device fold: its gear list holds no computer, so the device matches nothing and gets a `<divecomputer>` of its own with a non-UUID id and a `<link>` from the dive — the one case where reading the written file back returns a gear item the input never had. That its device carries a `name` is what puts it inside that exception rather than beside it: a nameless device on an element of its own gets an empty `<name>`, which comes back as no gear item at all. Its third dive starts on a date alone, the corpus's only such start going out, and is written as the bare `<datetime>` [`docs/uddf-writing.md`](../docs/uddf-writing.md) chooses over midnight, its readout-only recording reported `dropped` with nothing of it written; its recording's `salinity` and oxygen clocks are each reported `dropped`, while its surface pressure goes out as the dive's `<surfacepressure>`. Its first site's `other_names`, `altitude` and depth range are written — two `<aliasname>`s after the `<name>`, an `<altitude>` of `0` beside the pin in `<geography>`, and a `<sitedata>` with `<maximumdepth>` before `<minimumdepth>` — and its `external_ids`, `water_type`, `entry_types` and `tags` are each reported `dropped`, UDDF's site having no slot for any of them. The `absent` half is its second dive and its third trip part: no maximum depth, no time in the water and a cylinder with no start pressure, so `<greatestdepth>`, `<diveduration>` and `<tankpressurebegin>` are each written as the `0` a reader takes back off, and a part with no place gets the empty `<name>` `simpleNamedType` requires. Its trip is the corpus's only three-`<trippart>` one, and the three are the three shapes a part comes in: a place with dates, a place with none — which writes no `<dateoftrip>`, that being the one thing here that costs nothing — and dates with no place; each place goes out in both the part's `<name>` and its `<geography><location>`, with its coordinates beside it. Its contact goes out as a `<divebase>`, its roles reported since the slots say back two of its four, linked from the first dive after its two sites and copied onto the first part as an `<accomodation>` typed `hotel`; the course's, the card's and the service record's references to it go with their records. Its four people go out as `<buddy>` elements after the owner; the first dive links its `instructor` and its `student` as plain links with their roles reported, the second its `buddy` and the third its role-less reference as the same plain link, reported since it reads back as `buddy`, and the trip's people and the courses' are reported, with the certification's `instructor_uuid` going with the certification. J. Harbord's `created_at` and `extensions` are reported, as the contact's are, beside the contact's `position`, which a `<divebase>` has no `<geography>` for. |
376
+ | `technical-dive.divejson` | `valid/technical-dive.divejson` | Everything the first one cannot reach, being hand-built to hold what no UDDF export carries. The `dropped` half of the report: `courses`, `certifications`, `gear_sets` and gear service, which UDDF has no slot for; `species` and the dives' sightings, whose slot a writer could fill only by inventing a class for each; `role` and `usage` on a sidemount pair and its staged deco cylinders; a ceiling channel; a trip part's bounding box, and a dive site's locality entire but for its name — its centre and its box, which is two findings off one record where a part loses one; the gas numbering UDDF cannot record; `shears`, the `backplate`, the `undergarment`, the `tech_shorts` and the `slate` landing in `<variouspieces>` and reading back as `other`, and the `wing` landing in `<buoyancycontroldevice>` and reading back as `bcd`, each reported; a `bookmark` carrying a label, which keeps its type and loses the label; an event with a label and no type, which goes out as a `<setmarker>` carrying the label; the `deco_model`, `tts` and `surface_gradient_factor` its document now carries, each reported `dropped` — the first because UDDF's `<decomodel>` requires a tissue table this format has no member for, the other two because UDDF has no element at all; an empty note, which no UDDF file can spell; a device's `firmware`, for which `equipmentPieceType` has no element; and the diver's `emergency_contacts` and `portrait_file` and an insurance's `number`, which UDDF has no element for either — the insurance itself is written, as a `<diveinsurances>` entry carrying its provider. Its first dive's `type`, `rating`, `air_temperature` and `current` are written — `<apparatus>open-scuba</apparatus>` after the kit, a `<ratingvalue>` of `8`, twice the five-step rating, a Kelvin `<airtemperature>` after the `<datetime>` and `moderate-current` — and its `tags`, `waves`, `weather` and `boat_name` are each reported `dropped`, UDDF having no element for any of them; so is its `entry_type` of `boat`, since UDDF's boats are small, charter, live-aboard or a barge, and writing any of them would describe a boat the document does not. Its gear carries the vessel half of §6.3 and §6.12: the twinset and the two sidemount steels go out as `<tank>` pieces carrying `<tankmaterial>` and then `<tankvolume>` after their names, each piece's `working_pressure` and `dive_time` reported `dropped`, and the sidemount pair's two `<tankdata>` each carry a second `<link>`, to its vessel, after the mix's and beside its own `<tankvolume>`; the twinset, linked from no cylinder and on no dive's list, has no `<equipmentused>` link. Its heart rate is written, as a `<pulserate>` in beats per second after the waypoint's `<divetime>` — a whole beat over 60 being no number UDDF can state exactly, so a reader multiplying back rounds to the beat it was. It is also the **other** half of the device fold: its gear list holds no computer, so the device matches nothing and gets a `<divecomputer>` of its own with a non-UUID id and a `<link>` from the dive — the one case where reading the written file back returns a gear item the input never had. That its device carries a `name` is what puts it inside that exception rather than beside it: a nameless device on an element of its own gets an empty `<name>`, which comes back as no gear item at all. Its third dive starts on a date alone, the corpus's only such start going out, and is written as the bare `<datetime>` [`docs/uddf-writing.md`](../docs/uddf-writing.md) chooses over midnight, its readout-only recording reported `dropped` with nothing of it written; its recording's `salinity` and oxygen clocks are each reported `dropped`, while its surface pressure goes out as the dive's `<surfacepressure>`. Its first site's `other_names`, `altitude` and depth range are written — two `<aliasname>`s after the `<name>`, an `<altitude>` of `0` beside the pin in `<geography>`, and a `<sitedata>` with `<maximumdepth>` before `<minimumdepth>` — and its `external_ids`, `water_type`, `entry_types` and `tags` are each reported `dropped`, UDDF's site having no slot for any of them. The `absent` half is its second dive and its third trip part: no maximum depth, no time in the water and a cylinder with no start pressure, so `<greatestdepth>`, `<diveduration>` and `<tankpressurebegin>` are each written as the `0` a reader takes back off, and a part with no place gets the empty `<name>` `simpleNamedType` requires. Its trip is the corpus's only three-`<trippart>` one, and the three are the three shapes a part comes in: a place with dates, a place with none — which writes no `<dateoftrip>`, that being the one thing here that costs nothing — and dates with no place; each place goes out in both the part's `<name>` and its `<geography><location>`, with its coordinates beside it. Its contact goes out as a `<divebase>`, its roles reported since the slots say back two of its four, linked from the first dive after its two sites and copied onto the first part as an `<accomodation>` typed `hotel`; the course's, the card's and the service record's references to it go with their records. Its four people go out as `<buddy>` elements after the owner; the first dive links its `instructor` and its `student` as plain links with their roles reported, the second its `buddy` and the third its role-less reference as the same plain link, reported since it reads back as `buddy`, and the trip's people and the courses' are reported, with the certification's `instructor_uuid` going with the certification. J. Harbord's `created_at` and `extensions` are reported, as the contact's are, beside the contact's `position`, which a `<divebase>` has no `<geography>` for. |
377
377
  | `contacts.divejson` | hand-built | The writing half of §6.18 where `technical-dive` cannot reach it, five contacts. Blue Hole Divers, carrying every member but `extensions` and referenced from all five hosts, as a `<divebase>`, its `position` reported, a `<divebase>` having no `<geography>`. Reefside, a shop and nothing else, as a `<business><shop>`, the one slot that says its role back and the only contact here whose `roles` is not reported. Northern Star Liveaboards as a `<divebase>`, and as the copy on the part spent aboard, typed `boat`. Grandma's house, a name and a role, which two parts stay at: a name-only base and two copies of it, which a reader folds back into one contact where one that did not fold would return three. And a guest house also called Reefside, a name and a role, which the last part stays at: its name being the shop's, that part gets no copy and its accommodation is reported, and with no copy naming it and no dive linking it, its name-only base is one a reader skips, so it is reported too. |
378
378
  | `people.divejson` | hand-built | The writing half of §6.20 where `technical-dive` cannot reach it: five people and no diver, so the `<owner>` the `<buddy>` elements need goes out as the bare `owner` with empty names, which reads back as no diver. Mona Salem, carrying every member, is the `guide` on two dives at Blue Hole Divers, which goes out as a `<divebase>` holding one `<guide>` for her that both dives link, and the `guide` on a third whose contact is a shop, where the reference is a plain link and its role is reported. Karim, a one-word name with an empty `<lastname/>`, is a `buddy`, a `student` and a `companion` on three dives, the last two roles reported. Ahmed Fathy, written with two spaces between his names, goes out split at the first space and reads back with one; he is one dive's role-less reference — a plain link that reads back as `buddy`, reported — and another dive's `guide` with no base to hang it on. Leila Ben Ali, split into `Leila` and `Ben Ali`, is a dive's `instructor`, reported, and the instructor of a course and of its card, neither of which UDDF has. Nour Haddad is only the trip's `companion`, and goes out as a `<buddy>` all the same, coming back as a person nothing references; the trip's people are reported. |
379
379
  | `owner-profile-only.divejson` | `uddf/owner-profile-only.divejson` | The owner that records a person and names nobody, going out: a diver with a uuid and a `born_on` and no name or email still gets a `<diver>`, under `<owner id="diver-<uuid>">` because the document records something about the person, with the empty names `personalType` requires beside the `<birthdate>`. The written file is its reader pair's input again, `<generator>` aside. |
@@ -822,6 +822,24 @@
822
822
  "type": "wing",
823
823
  "rented": false,
824
824
  "dive_count": 84
825
+ },
826
+ {
827
+ "uuid": "0198a6f0-1111-7058-8000-000000000058",
828
+ "name": "Drysuit undergarment",
829
+ "type": "undergarment",
830
+ "rented": false
831
+ },
832
+ {
833
+ "uuid": "0198a6f0-1111-7059-8000-000000000059",
834
+ "name": "Tech shorts",
835
+ "type": "tech_shorts",
836
+ "rented": false
837
+ },
838
+ {
839
+ "uuid": "0198a6f0-1111-705a-8000-00000000005a",
840
+ "name": "Wetnotes",
841
+ "type": "slate",
842
+ "rented": false
825
843
  }
826
844
  ],
827
845
  "gear_sets": [
@@ -833,7 +851,10 @@
833
851
  "0198a6f0-1111-7050-8000-000000000050",
834
852
  "0198a6f0-1111-7051-8000-000000000051",
835
853
  "0198a6f0-1111-7056-8000-000000000056",
836
- "0198a6f0-1111-7057-8000-000000000057"
854
+ "0198a6f0-1111-7057-8000-000000000057",
855
+ "0198a6f0-1111-7058-8000-000000000058",
856
+ "0198a6f0-1111-7059-8000-000000000059",
857
+ "0198a6f0-1111-705a-8000-00000000005a"
837
858
  ],
838
859
  "created_at": "2024-02-01T10:05:00+00:00"
839
860
  }
@@ -822,6 +822,24 @@
822
822
  "type": "wing",
823
823
  "rented": false,
824
824
  "dive_count": 84
825
+ },
826
+ {
827
+ "uuid": "0198a6f0-1111-7058-8000-000000000058",
828
+ "name": "Drysuit undergarment",
829
+ "type": "undergarment",
830
+ "rented": false
831
+ },
832
+ {
833
+ "uuid": "0198a6f0-1111-7059-8000-000000000059",
834
+ "name": "Tech shorts",
835
+ "type": "tech_shorts",
836
+ "rented": false
837
+ },
838
+ {
839
+ "uuid": "0198a6f0-1111-705a-8000-00000000005a",
840
+ "name": "Wetnotes",
841
+ "type": "slate",
842
+ "rented": false
825
843
  }
826
844
  ],
827
845
  "gear_sets": [
@@ -833,7 +851,10 @@
833
851
  "0198a6f0-1111-7050-8000-000000000050",
834
852
  "0198a6f0-1111-7051-8000-000000000051",
835
853
  "0198a6f0-1111-7056-8000-000000000056",
836
- "0198a6f0-1111-7057-8000-000000000057"
854
+ "0198a6f0-1111-7057-8000-000000000057",
855
+ "0198a6f0-1111-7058-8000-000000000058",
856
+ "0198a6f0-1111-7059-8000-000000000059",
857
+ "0198a6f0-1111-705a-8000-00000000005a"
837
858
  ],
838
859
  "created_at": "2024-02-01T10:05:00+00:00"
839
860
  }
@@ -3,7 +3,7 @@
3
3
  <generator>
4
4
  <name>divejson convert</name>
5
5
  <type>converter</type>
6
- <version>0.34.0</version>
6
+ <version>0.36.0</version>
7
7
  <datetime>2026-08-28T12:00:00Z</datetime>
8
8
  </generator>
9
9
  <diver>
@@ -52,6 +52,15 @@
52
52
  <variouspieces id="gear-0198a6f0-1111-7056-8000-000000000056">
53
53
  <name>Steel backplate</name>
54
54
  </variouspieces>
55
+ <variouspieces id="gear-0198a6f0-1111-7058-8000-000000000058">
56
+ <name>Drysuit undergarment</name>
57
+ </variouspieces>
58
+ <variouspieces id="gear-0198a6f0-1111-7059-8000-000000000059">
59
+ <name>Tech shorts</name>
60
+ </variouspieces>
61
+ <variouspieces id="gear-0198a6f0-1111-705a-8000-00000000005a">
62
+ <name>Wetnotes</name>
63
+ </variouspieces>
55
64
  </equipment>
56
65
  <diveinsurances>
57
66
  <insurance>
@@ -572,11 +572,12 @@
572
572
  "serial": { "type": "string", "minLength": 1, "maxLength": 64 },
573
573
  "type": {
574
574
  "enum": [
575
- "mask", "snorkel", "fins", "wetsuit", "drysuit", "vest", "hood",
576
- "gloves", "boots", "bcd", "backplate", "wing", "regulator",
577
- "rebreather", "computer", "transmitter", "cylinder", "light",
578
- "scooter", "smb", "mirror", "whistle", "reel", "knife",
579
- "line_cutter", "shears", "compass", "camera", "other"
575
+ "mask", "snorkel", "fins", "wetsuit", "drysuit", "vest",
576
+ "undergarment", "hood", "gloves", "boots", "tech_shorts", "bcd",
577
+ "backplate", "wing", "regulator", "rebreather", "computer",
578
+ "transmitter", "cylinder", "light", "scooter", "smb", "mirror",
579
+ "whistle", "reel", "knife", "line_cutter", "shears", "compass",
580
+ "slate", "camera", "other"
580
581
  ]
581
582
  },
582
583
  "volume": { "type": "number", "exclusiveMinimum": 0 },
@@ -902,6 +902,27 @@ def test_gear_with_no_uddf_element_of_its_own_says_so(schema) -> None:
902
902
  ]
903
903
 
904
904
 
905
+ def test_an_undergarment_tech_shorts_and_a_slate_are_various_pieces(schema) -> None:
906
+ """UDDF has no element for any of the three. A `<suit>` of `<suittype>other` would read
907
+ back as a wetsuit, a near type substituted for the true one, so the layer and the shorts
908
+ go to the catch-all with the slate."""
909
+ source = document(
910
+ gear=[
911
+ {"uuid": GEAR_UUID, "name": "Thinsulate undersuit", "type": "undergarment"},
912
+ {"uuid": "0198a6f0-9999-7006-8000-000000000006", "name": "Pocket shorts", "type": "tech_shorts"},
913
+ {"uuid": "0198a6f0-9999-7007-8000-000000000007", "name": "Wetnotes", "type": "slate"},
914
+ ]
915
+ )
916
+ text = written(source, schema)
917
+ assert text.count("<variouspieces") == 3 and "<suit" not in text
918
+ assert [item["type"] for item in read_back(source)["gear"]] == ["other", "other", "other"]
919
+ for where, gear_type in (("gear/0", "undergarment"), ("gear/1", "tech_shorts"), ("gear/2", "slate")):
920
+ assert messages(source, where) == [
921
+ f"UDDF's equipment vocabulary does not name '{gear_type}'; the piece is written as <variouspieces>, "
922
+ "which reads back as 'other'"
923
+ ]
924
+
925
+
905
926
  def test_a_wing_is_written_as_the_buoyancy_control_device_it_is(schema) -> None:
906
927
  """UDDF's element for a BCD names the broader kind, so it says nothing false about a wing;
907
928
  the reader brings it back as the general `bcd`, and the report says the type did not
divejson-0.36.0/SPEC_REF DELETED
@@ -1 +0,0 @@
1
- 3bcf47c6a57af94b1001c4d643d6e3019d83d115
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes