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

Nullable infer on array type doesn't add null type #6

Open
luposlip opened this issue Jun 24, 2020 · 1 comment
Open

Nullable infer on array type doesn't add null type #6

luposlip opened this issue Jun 24, 2020 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@luposlip
Copy link
Owner

If a set of documents being inferred have a vector of documents, but one document sets this to nil, the resulting inferred schema doesn't add type :null to the generated type.

I.e. the result is :type #{:array}, and not as expected :type #{:array :null}.

This works for other types. Question: Is it because of the initial array type, because the first document used to infer has a nil value, or because of some nested property?

@luposlip luposlip added the bug Something isn't working label Jun 24, 2020
@luposlip luposlip self-assigned this Jun 24, 2020
@luposlip
Copy link
Owner Author

This need to be re-tested with v0.4.3.

@luposlip luposlip added the good first issue Good for newcomers label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant