Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test vector for [null, true, ...] #77

Open
cabo opened this issue Jul 25, 2023 · 0 comments
Open

Add test vector for [null, true, ...] #77

cabo opened this issue Jul 25, 2023 · 0 comments

Comments

@cabo
Copy link
Member

cabo commented Jul 25, 2023

[Section 5.1]

  • "two leading null values (scheme and authority both not given) MUST be represented by using the discard alternative instead, and"

    Is this actually the only case where to use discard?

    Scheme and authority are both not given also in case the first two elements in the outer array are null (absent scheme) and true (absent authority followed by rootless path). Shouldn't discard be used also in this case?

[_]
In some cases, you would use [1, [some-path]] instead of [null, true, [some-path]], but not when you want to explicitly make the CRI rootless.
(We don't have an example where this would make sense, but it currently is possible.)
In any case, using discard would make it impossible to select NOAUTH-ROOTLESS.
➔ add a test vector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant