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
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
@arrkaye Starting with draft-06, the requirement is "SHOULD have at least one element" (in draft-04 it was "MUST have at least one element"). SHOULD is a weaker requirement than MUST, and means that while it's not advised to have an empty array, it is legal. If you are using draft-06 or later and this is not working, then you should file an issue with the maintainer of your validator. If you're still using draft-04, I recommend finding a validator that supports a more recent draft.
And conversely, why is it invalid when a enum is
[]
.This is causing an issue for us when we generate schema's dynamically and there is an option that is meant to be unpopulated/empty.
Thanks.
The text was updated successfully, but these errors were encountered: