-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Error in spec/data-model-errors.json #995
Comments
There is a difference: |
And I argue that it is wrong to have that difference. Everything is a string, we refused again and again to allow for any kind of types:
It also has the side-effects that the keys in a "selector map", or the "cases in a switch" (however we want to think about the selection) end up being different types. In ABNF the
By this logic the
Because
I mean, Looks like |
The description of Key in the data model (syntax.md):
So:
So the |
Ah, good catch! The key equality text is a bit misleading, so I filed #996 to improve the text. |
The last test case is
I think this is an error.
Why?
Because there is no difference between
|*|
and*
.So there should be a data model error,
It is the same as the test a bit above:
And the fact that it is included in
data-model-errors.json
also seems to confirm that the intention was for this to be an error, and the missing"expErrors": [{ "type": "duplicate-variant" }]
is just an unintentional mistake.The text was updated successfully, but these errors were encountered: