Repository navigation
Port to vCon core-05 (syntax 0.5.0), release 1.0.0 - #8
Merged
Merged
Conversation
Replaces the 0.4.0 schema fixture used by the conformance test with the core-05 Appendix C JSON Schema, and adds the nine Appendix B examples. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add Session, Session_Reference and Event objects, the per-event-type parameter table, redacted_from/amended_from/redacted_strings, attachment scoping by dialog or session, empty placeholder Dialogs, and validation of the core-05 rules including extensions enforcement. Reject JWS alg none on sign and verify. Add migrate040To050 with a migration report, and migrate 0.4.0 input on load (signed input is not migrated on load). Writers emit 0.5.0. Dialog loses transfer, recording-set, party_history and originator content; the old names stay as deprecated aliases where noted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the reference tests for migration (index stability, transfer, party_history, recording-set, signed input not migrated on load), Session, Event table, signing and extensions enforcement. Validate the Appendix B examples and library output against the Appendix C JSON schema. Update the existing suites for the removed Dialog types and the new attachment scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bump to 1.0.0 (breaking: writes syntax 0.5.0). Rewrite the README and the examples for Sessions and Events and add the migration guide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A differential run against the Python reference found that the port truncated timestamps to milliseconds (wrong Session duration and, for starts under a millisecond apart, the wrong earliest start), rounded durations half up instead of half to even, formatted a derived consultation-end Event time differently, and accepted out-of-range date-times such as February 30 and hour 24 by rolling them over. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Retargets vcon-js to draft-ietf-vcon-vcon-core-05: Session and Event objects, 0.4.0 → 0.5.0 migration on load with a report (Appendix A.1, T1–T15), core-05 validation, JWS alg none rejected. Breaking; version 1.0.0. See CHANGELOG/README.
Parity with the Python reference (vcon 1.0.3): migrated 272 real 0.4.0 vCons from across vcon-dev and VCONIC with both libraries. All 248 migratable ones produce byte-identical output and identical reports; the other 24 are vcon-c test wrappers that both reject. Both validators give the same verdict and the same errors on all migrated outputs and on the Appendix B examples (except B6/B7, the JWS forms, which vcon-js treats as valid and vcon-lib reports as missing uuid). The last commit adds the T1 dialog-start check the Python port gained on Nov 15.
387 tests pass; build, lint and examples run. Not published to npm (latest there is 0.5.2).