-
Notifications
You must be signed in to change notification settings - Fork 795
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
Bug: Can't define a schema with flexible object keys #4060
Comments
I think this is proper behavior of the parser, since you defined a specific sub property of the flexible object in the schema it should at least contains a also not that your schema is incorrect it should be |
I believe whenever there's a In the case of |
I suppose to emphasize my last point, if you currently write
If you run
insinuating that whildcard parts of a type path really should be optional as they are for arrays. |
In my eyes it makes more sense to rely on the subfield definition using the
Furthermore :
|
Describe the bug
It seems like there's a bug when calculating object paths that prevents one from using arbitrary keys for an object while defining the key's type.
Steps to reproduce
Take the following schema:
Doing the following fails, but should work:
And likewise the following:
Expected behaviour
I expect to be able to define a schema for an object field that can have arbitrary keys, but still define the sub-field types.
SurrealDB version
SurrealDB command-line interface and server 1.5.0 for linux on x86_64
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: