You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: