-
Notifications
You must be signed in to change notification settings - Fork 31
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
ItemsSchema elaboration #230
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am having issues with finding out if an itemsSchema exists (e.g. for an implicit array type where only the "items:" exists, which as far as I can tell is valid and no validation issues are raised from it).
When an items schema is retrieved from a schema, it will always return a schema, even if the elaborate parameter is set to true.
I'm unclear on if this is intended or a bug, but this makes it hard to distinguish between actual implicit arrays and other types. It can be especially confusing with "not" which seems to do the same thing.
E.g: The following API is valid
And the following code is able to recurse through itemsSchema regardless of what "elaborate" is set to:
Apologies if I am just misunderstanding something or there's an easier way to see if the itemsSchema actually exists.
The text was updated successfully, but these errors were encountered: