Skip to content

Commit 22e42dd

Browse files
authored
fix: do not modify incoming event's specversion (#419)
Even if the specversion is totally invalid, we should not change the value received in an incoming `Message`. Previously we defaulted to 1.0 if we did not recognize the version number. This commit changes that, leaving the value unmodified. We default to parsing this mystery event with the 1.0 spec. When the event is validated with `event.validate()` we return `false`. One additional small change to eliminate a prettier warning about `parer` being previously declared. Fixes: #332 Fixes: #333 Signed-off-by: Lance Ball <[email protected]>
1 parent 7c05ade commit 22e42dd

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)