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

Remove value from formData when property is removed (not required) #992

Closed
zrzka opened this issue Jul 30, 2018 · 1 comment
Closed

Remove value from formData when property is removed (not required) #992

zrzka opened this issue Jul 30, 2018 · 1 comment
Labels
possibly close To confirm if this issue can be closed

Comments

@zrzka
Copy link

zrzka commented Jul 30, 2018

Description

I'm trying to achieve something like this:

  • if enable property is true, it MUST contain ssid property
  • if enable property is false, it MUST NOT contain ssid property

Steps to Reproduce

  1. Open this example
  2. Enable WiFi
  3. Fill in SSID
  4. Disable WiFi
  5. Error ['ssid'] should NOT have additional properties appears

If the link in 1. wont work, here's the schema.

Expected behavior

No ['ssid'] should NOT have additional properties error. I expect that there will be no ssid value in formData when I disable WiFi.

Actual behavior

Keeps ssid in formData and raising ['ssid'] should NOT have additional properties error.

@loganvolkers
Copy link
Contributor

I believe this is related to #902 and #848.

I believe there is a longstanding issue when using "additionalProperties": false

@jacqueswho jacqueswho added the possibly close To confirm if this issue can be closed label Feb 24, 2022
@stale stale bot closed this as completed Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possibly close To confirm if this issue can be closed
Projects
None yet
Development

No branches or pull requests

3 participants