Repository navigation
Allow a url without content_hash (parity with vcon 1.0.6) - #11
Merged
Merged
Conversation
…vcon 1.0.6) Follows the IETF vCon WG direction on draft-ietf-vcon-vcon-core issue #40 and the reference library vcon 1.0.6: no error and no warning for a url without a content_hash. An Attachment needs body+encoding or url. Dialog.validate() and Attachment.validate() drop the same requirement but still reject a malformed content_hash; redacted_from / amended_from with a url still need one.
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.
Follows the IETF vCon WG direction on draft-ietf-vcon-vcon-core#40 and matches the Python reference vcon 1.0.6.
urlwithout acontent_hashon a Dialog, Attachment or Analysis: no error and no warning. The old warning ("... has a url but no content_hash (an external reference MUST have both; this will be an error in vcon 1.1).") is gone.Attachment at index N must include body+encoding or url.(was... or url+content_hash.).Dialog.validate()/Attachment.validate()no longer require acontent_hashwith aurl; a malformed one is still rejected.content_hashis anisValid()error;redacted_from/amended_fromwith aurlstill need acontent_hash.Parity against vcon 1.0.6 (
Vcon(d, migrate_legacy=False).is_valid()andget_validation_warnings()), verdicts, errors and warnings in the same order:The two differences are the known 0.4.0 message, which names each library's own migrate function (
migrate040To050()vsmigrate_0_4_0_to_0_5_0()).Not published to npm.