-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conflict when using an optional array with minItems set #3363
Comments
Here's a playground for it |
@ThomasAribart Good bug. The code is not taking into account the required-ness of the property. This seems like an easy fix in the |
Hi there 👋 we’re also encountering the same bug in our project. Is there currently work in progress to fix it? If not, could we offer our help with fixing it? |
Same here. Would be willing to help out to get this fixed. |
Yes please! Any help fixing issues is highly encouraged as we are a small team of volunteers who fix things because we want this project to succeed but do so only when we have a little free time. |
@heath-freenome Question for you. I'm working on this and ran into a situation where I think one of the existing tests conflicts with this bug. Here's the console output: I think the consensus here is that if the field isn't required and has Are you okay with me removing this test or is there a part of the JSON Schema spec that I'm missing that specifies this behavior? |
@RPiAwesomeness These are great questions and merit a verbal conversation with the rest of the current maintainers (all 2 of us). Are you able to come to the weekly meeting that we have every Friday at 11am Eastern time? See this post for the deets |
Potentially. I'll double-check my schedule but that should work for me. Anything in particular that I should prep to help the discussion? |
Not really, if anything there might be a new minor feature that will need to be added to support the work you are doing in a backwards-compatible way. We can talk about it Friday and give you a bit more background than is here in this bug. |
Prerequisites
What theme are you using?
material-ui
Version
5.x
Current Behavior
Hi and thanks for this great lib 🙌
When setting an optional property in an
"object"
, which is of type"array"
with a"minItem"
set to 1 or more, it's not possible to remove the property from the said object.By default, the array property widget appears with items that can be empty, which can cause bugs.
Expected Behavior
I don't have any design proposal, I know it's tricky to represent, but the default items should only appear when deciding that the property is not undefined somehow.
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: