divejson 0.35.2__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.
- {divejson-0.35.2 → divejson-0.37.0}/.github/workflows/ci.yml +1 -0
- {divejson-0.35.2 → divejson-0.37.0}/.github/workflows/pr-title.yml +11 -4
- {divejson-0.35.2 → divejson-0.37.0}/.github/workflows/release-bump.yml +57 -40
- divejson-0.37.0/AGENTS.md +38 -0
- {divejson-0.35.2 → divejson-0.37.0}/CHANGELOG.md +22 -0
- divejson-0.37.0/CLAUDE.md +1 -0
- {divejson-0.35.2 → divejson-0.37.0}/CONTRIBUTING.md +3 -1
- {divejson-0.35.2 → divejson-0.37.0}/PKG-INFO +1 -1
- divejson-0.37.0/SPEC_REF +1 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/__init__.py +1 -1
- {divejson-0.35.2 → divejson-0.37.0}/divejson/uddf_write.py +6 -1
- {divejson-0.35.2 → divejson-0.37.0}/docs/uddf-mapping.md +4 -4
- {divejson-0.35.2 → divejson-0.37.0}/docs/uddf-writing.md +5 -2
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/README.md +4 -2
- divejson-0.37.0/fixtures/invalid/agency-retired.divejson +12 -0
- divejson-0.37.0/fixtures/invalid/course-agency-retired.divejson +12 -0
- {divejson-0.35.2/fixtures/write/uddf → divejson-0.37.0/fixtures/valid}/technical-dive.divejson +29 -2
- {divejson-0.35.2/fixtures/valid → divejson-0.37.0/fixtures/write/uddf}/technical-dive.divejson +29 -2
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/write/uddf/technical-dive.uddf +10 -1
- {divejson-0.35.2 → divejson-0.37.0}/schema/1.0/divejson.schema.json +14 -11
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_uddf_writing.py +21 -0
- divejson-0.35.2/SPEC_REF +0 -1
- {divejson-0.35.2 → divejson-0.37.0}/.github/scripts/release_bump.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/.github/scripts/spec_pin.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/.github/workflows/release.yml +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/.gitignore +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/LICENSE +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/README.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/cli.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/codes.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/conform.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/converter.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/fit.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/py.typed +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/registry.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/series.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/shearwater_db.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/shearwater_xml.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/ssrf.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/suunto_json.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/suunto_xml.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/uddf.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/validate.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/divejson/xmlsource.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/docs/converting.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/docs/fit-mapping.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/docs/shearwater-db-mapping.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/docs/shearwater-xml-mapping.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/docs/ssrf-mapping.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/docs/suunto-json-mapping.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/docs/suunto-xml-mapping.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/docs/writing.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/garmin-connect-summary-first.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/garmin-connect-summary-first.fit +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/ocean-heart-rate.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/ocean-heart-rate.fit +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/ocean-poor-first-fix.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/ocean-poor-first-fix.fit +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/suunto-d5.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/suunto-d5.fit +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/suunto-ocean-2026.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/suunto-ocean-2026.fit +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/suunto-ocean.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/fit/suunto-ocean.fit +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/accommodation-dangling-reference.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/address-without-country.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/agency-other-missing.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/avg-depth-exceeds-max.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/bad-version.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/bbox-missing-corner.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/bbox-south-exceeds-north.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/bbox-without-position.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/boat-name-empty.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/boat-name-too-long.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/channel-length-mismatch.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/contact-position-incomplete.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/contact-roles-repeated.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/course-agency-other-without-agency.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/course-dates-reversed.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/current-unknown.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/cylinder-gear-dangling-reference.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/cylinder-gear-repeated.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/dangling-reference.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/deco-model-gf-order.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/device-empty-member.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/dive-duration.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/dive-profile-outside-recording.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/dive-readout-outside-recording.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/diver-email-too-long.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/diver-name-too-long.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/diver-username.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/duplicate-file-uuid-across-recordings.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/duplicate-file-uuid-portrait.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/duplicate-json-member.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/duplicate-uuid.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/emergency-contact-without-name.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/entry-type-unknown.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/event-without-type-or-label.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-id-identifier-empty.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-id-identifier-too-long.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-id-openstreetmap-form.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-id-registry-not-a-key.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-id-wikidata-form.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-id-without-identifier.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-id-without-registry.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-id-worms-form.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-ids-repeated-with-extensions.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/external-ids-repeated.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/gear-dive-time-negative.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/gear-material-unknown.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/gear-type-unknown.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/gear-volume-not-positive.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/gear-working-pressure-too-high.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/heart-rate-zero.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/instructor-dangling-reference.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/insurance-without-provider.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/location-full-name.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/missing-format.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/naive-exported-at.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/non-increasing-samples.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/null-member.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/oxygen-helium-sum.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/person-dangling-reference.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/person-referenced-twice.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/position-incomplete.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/pressure-order.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/profile-duration-short.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/rating-out-of-range.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/recording-without-content.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/schedule-interval-hours-not-positive.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/schedule-without-interval.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/sighting-count-and-abundance.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/sighting-dangling-reference.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/sighting-species-repeated.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-altitude-too-high.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-altitude-too-low.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-bbox-south-exceeds-north.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-depth-from-negative.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-depth-reversed.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-depth-to-negative.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-entry-type-unknown.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-entry-types-repeated.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-other-name-empty.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-other-name-repeats-name.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-other-name-too-long.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-other-names-repeated-by-case.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-other-names-repeated.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-tag-empty.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-tag-too-long.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-tags-repeated-by-case.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-tags-repeated.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/site-water-type-unknown.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/species-aphia-id.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/species-external-ids-empty.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/species-external-ids-repeated-with-extensions.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/species-no-identity.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/species-two-worms-entries.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/species-wikidata-qid.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/tag-empty.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/tag-too-long.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/tags-repeated-by-case.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/tags-repeated-by-whitespace.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/tags-repeated.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/trailing-newline-datetime.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/trip-dates-reversed.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/type-unknown.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/undefined-member.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/water-type-en13319.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/waves-unknown.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/invalid/weather-unknown.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/shearwater_db/perdix3-deco-dive-11.db +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/shearwater_db/perdix3-deco-dive-11.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/shearwater_db/perdix3-dives-1-and-8.db +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/shearwater_db/perdix3-dives-1-and-8.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/shearwater_xml/perdix3-deco-dive-11.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/shearwater_xml/perdix3-deco-dive-11.xml +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/shearwater_xml/perdix3-dive-8.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/shearwater_xml/perdix3-dive-8.xml +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/people.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/people.ssrf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/refusals.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/refusals.ssrf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/sites.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/sites.ssrf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/subsurface.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/subsurface.ssrf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/trip-grouping.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/trip-grouping.ssrf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/two-computers.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/ssrf/two-computers.ssrf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/d5-deco-max-depth.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/d5-deco-max-depth.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/d5-deep-stop-broken.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/d5-deep-stop-broken.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/d5-stop-alarms.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/d5-stop-alarms.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/header-only.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/header-only.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/not-a-dive.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/not-a-dive.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/ocean-deco-ppo2.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/ocean-deco-ppo2.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/ocean-heart-rate.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/ocean-heart-rate.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/ocean-poor-first-fix.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/ocean-poor-first-fix.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/ocean-tank-pressure.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/ocean-tank-pressure.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/purged-regulator.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/purged-regulator.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/suunto-d5.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/suunto-d5.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/suunto-ocean-2026.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/suunto-ocean-2026.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/suunto-ocean.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_json/suunto-ocean.json +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/freedive.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/freedive.xml +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/nitrox-deco.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/nitrox-deco.xml +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/refusals.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/refusals.xml +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/suunto-d5.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/suunto-d5.xml +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/unlabelled-pressure.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/suunto_xml/unlabelled-pressure.xml +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/conditions.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/conditions.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/contacts.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/contacts.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/divelogs.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/divelogs.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/gear.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/gear.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/legacy-writer.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/legacy-writer.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/mix-only-cylinder.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/mix-only-cylinder.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/opendiving.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/opendiving.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/owner-profile-only.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/owner-profile-only.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/people.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/people.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/shearwater-cloud-cns.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/shearwater-cloud-cns.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/shearwater-cloud.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/shearwater-cloud.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/sites.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/sites.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/subsurface.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/uddf/subsurface.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/valid/demo-logbook.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/valid/minimal.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/valid/two-computers.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/write/uddf/contacts.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/write/uddf/contacts.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/write/uddf/opendiving.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/write/uddf/opendiving.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/write/uddf/owner-profile-only.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/write/uddf/owner-profile-only.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/write/uddf/people.divejson +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/fixtures/write/uddf/people.uddf +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/pyproject.toml +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/fitbuild.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/fixtures/README.md +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/fixtures/uddf_3.2.2.xsd +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/helpers.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/shearwaterbuild.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_cli.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_conform.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_converter.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_findings.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_fit_fixtures.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_fit_parsing.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_fit_units.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_package.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_registry.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_release_bump.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_series.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_shearwater_db.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_shearwater_xml.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_sources.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_spec_pin.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_ssrf_fixtures.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_ssrf_parsing.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_ssrf_units.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_suunto_json_fixtures.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_suunto_json_parsing.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_suunto_json_units.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_suunto_xml_fixtures.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_suunto_xml_parsing.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_suunto_xml_units.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_uddf_fixtures.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_uddf_parsing.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_uddf_units.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_uddf_write_fixtures.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_validate.py +0 -0
- {divejson-0.35.2 → divejson-0.37.0}/tests/test_xmlsource.py +0 -0
|
@@ -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
|
|
9
|
-
#
|
|
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.
|
|
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`
|
|
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
|
|
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,
|
|
21
|
-
# `
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
#
|
|
27
|
-
#
|
|
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
|
-
#
|
|
230
|
-
#
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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
|
-
|
|
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
|
-
#
|
|
261
|
-
#
|
|
262
|
-
|
|
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,
|
|
265
|
-
# A call that fails is one lost attempt rather than the end of the
|
|
266
|
-
#
|
|
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
|
-
|
|
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,28 @@ 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
|
+
|
|
21
|
+
## 0.36.0
|
|
22
|
+
|
|
23
|
+
- **Breaking: the certification and course agencies gain `cdaa`, `isc` and `ise`, and give up
|
|
24
|
+
`saa` and `efr`.** §6.16 of
|
|
25
|
+
[the specification](https://github.com/divejson/divejson/blob/main/spec/divejson.md) adds the
|
|
26
|
+
Cave Divers Association of Australia, International Scuba Certification and InnerSpace
|
|
27
|
+
Explorers, arriving with the schema. `divejson validate` refuses a document carrying either
|
|
28
|
+
retired value: the Sub-Aqua Association is the UK's CMAS federation, so its card is `cmas`,
|
|
29
|
+
and Emergency First Response is a brand of PADI, so its card is `padi`. No reader or writer
|
|
30
|
+
here names an agency, so nothing a converter produces moves.
|
|
31
|
+
|
|
10
32
|
## 0.35.2
|
|
11
33
|
|
|
12
34
|
- **Garmin Connect FIT exports keep their samples when the session precedes them.**
|
|
@@ -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.
|
|
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
|
divejson-0.37.0/SPEC_REF
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5bb40c6810d30a8674d377443ab1790e1d4c3a4a
|
|
@@ -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
|
|
482
|
-
|
|
483
|
-
`other`; a `wing` is written 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
|
|
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
|
|
|
@@ -151,6 +151,8 @@ validator does not look.
|
|
|
151
151
|
| `schedule-interval-hours-not-positive.divejson` | a service schedule's `interval_hours` of `0` | §6.14 |
|
|
152
152
|
| `agency-other-missing.divejson` | `agency: "other"` without `agency_other` | §6.16 |
|
|
153
153
|
| `course-agency-other-without-agency.divejson` | `agency_other` on a course that omits `agency` | §6.17 |
|
|
154
|
+
| `agency-retired.divejson` | a certification's `agency` of `"efr"`, a brand §6.16 records under `"padi"` | §6.16 |
|
|
155
|
+
| `course-agency-retired.divejson` | a course's `agency` of `"saa"`, a national CMAS federation §6.16 records as `"cmas"`: the schema holds the list twice, and this reaches the course's copy | §6.16, §6.17 |
|
|
154
156
|
| `accommodation-dangling-reference.divejson` | a trip part's `accommodation_uuid` resolves to no contact — the embedded host §3's rule 1 now reaches, where `dangling-reference` is a record's | §5.3, §6.9a |
|
|
155
157
|
| `contact-roles-repeated.divejson` | a contact's `roles` carries `school` twice | §6.18 |
|
|
156
158
|
| `contact-position-incomplete.divejson` | `position-incomplete`'s defect on a **contact's** `position`, missing `longitude`: §6's Position has a host in §6.18 now, and a validator walking only the dives, sites and locations passes the file | §6, §6.18 |
|
|
@@ -371,7 +373,7 @@ reaches.
|
|
|
371
373
|
| file | written from | what it covers |
|
|
372
374
|
| --- | --- | --- |
|
|
373
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. |
|
|
374
|
-
| `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 `
|
|
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. |
|
|
375
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. |
|
|
376
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. |
|
|
377
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. |
|
{divejson-0.35.2/fixtures/write/uddf → divejson-0.37.0/fixtures/valid}/technical-dive.divejson
RENAMED
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
{
|
|
637
637
|
"uuid": "0198a6f0-1111-7091-8000-000000000091",
|
|
638
638
|
"name": "Cave 1",
|
|
639
|
-
"agency": "
|
|
639
|
+
"agency": "cdaa",
|
|
640
640
|
"status": "planned",
|
|
641
641
|
"notes": "Booked for the southern winter; no dates confirmed yet."
|
|
642
642
|
},
|
|
@@ -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
|
}
|
|
@@ -915,6 +936,12 @@
|
|
|
915
936
|
"agency": "aida",
|
|
916
937
|
"name": "AIDA 2 Freediver",
|
|
917
938
|
"certified_on": "2024-11-09"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"uuid": "0198a6f0-1111-7084-8000-000000000084",
|
|
942
|
+
"agency": "isc",
|
|
943
|
+
"name": "Open Water Diver",
|
|
944
|
+
"certified_on": "2019-05-18"
|
|
918
945
|
}
|
|
919
946
|
],
|
|
920
947
|
"contacts": [
|
{divejson-0.35.2/fixtures/valid → divejson-0.37.0/fixtures/write/uddf}/technical-dive.divejson
RENAMED
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
{
|
|
637
637
|
"uuid": "0198a6f0-1111-7091-8000-000000000091",
|
|
638
638
|
"name": "Cave 1",
|
|
639
|
-
"agency": "
|
|
639
|
+
"agency": "cdaa",
|
|
640
640
|
"status": "planned",
|
|
641
641
|
"notes": "Booked for the southern winter; no dates confirmed yet."
|
|
642
642
|
},
|
|
@@ -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
|
}
|
|
@@ -915,6 +936,12 @@
|
|
|
915
936
|
"agency": "aida",
|
|
916
937
|
"name": "AIDA 2 Freediver",
|
|
917
938
|
"certified_on": "2024-11-09"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"uuid": "0198a6f0-1111-7084-8000-000000000084",
|
|
942
|
+
"agency": "isc",
|
|
943
|
+
"name": "Open Water Diver",
|
|
944
|
+
"certified_on": "2019-05-18"
|
|
918
945
|
}
|
|
919
946
|
],
|
|
920
947
|
"contacts": [
|