Open
Description
vex.Parse
assums the latest version.
go-vex/pkg/vex/functions_files.go
Lines 33 to 40 in eb8ba79
vex.Open
autodetects the version.
go-vex/pkg/vex/functions_files.go
Lines 96 to 100 in eb8ba79
At first, I tried vex.Open
, and my VEX file didn't work because the @context
in the file was "https://openvex.dev/ns/
even though the file content was compatible with v0.2.0. Then, Open
fell back into v0.0.1.
But after I switched to vex.Parse
, it suddenly worked. I was a bit surprised they behaved differently. Is it possible to change both to the same behavior? I'd like to know the reason if it is intentional. If you agree to the change, I can open a PR.
Metadata
Metadata
Assignees
Labels
No labels