KEMBAR78
Fix switch validation of typeof field by knolleary · Pull Request #4465 · node-red/node-red · GitHub
Skip to content

Conversation

knolleary
Copy link
Member

Fixes #4464

The typeof check in the switch node doesn't need to validate the configuration as they are hardcoded options. The way the rule stores its configuration was making the validator want to look for an actual json string in the config, whereas it is simply the string json.

@knolleary knolleary merged commit b06494c into master Dec 6, 2023
@knolleary knolleary deleted the 4464-fix-switch-typeof-validation branch December 6, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch Node Bug - typeof

2 participants