Repository navigation
Fix validation of Subflow - #5957
Merged
Merged
Conversation
Member
|
What issue is this fixing? How to recreate to verify what this fix is doing? |
Contributor
Author
|
Import the below flow: [{"id":"7297e7477642c9e3","type":"subflow","name":"Subflow 1","info":"","in":[],"out":[]},{"id":"0eca7f35cb818897","type":"mqtt in","z":"7297e7477642c9e3","name":"","topic":"","qos":"2","datatype":"auto-detect","nl":false,"rap":true,"rh":0,"inputs":0,"x":190,"y":80,"wires":[[]]},{"id":"31bf2fabf146f4c6","type":"subflow:7297e7477642c9e3","z":"af9187370c7594c9","name":"","x":320,"y":2040,"wires":[]}]When a Subflow instance is validated, the validity of the Subflow (definition) itself is checked. The Subflow contains an unconfigured (and therefore invalid) MQTT node; consequently, the Subflow—and by extension, the instances—are considered invalid. However, this is not actually the case. |
Member
|
@GogoVega to summarise:
|
Contributor
Author
|
Yep. That's a good summary. |
knolleary
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Types of changes
Proposed changes
Fix validation of Subflow. The Subflow object has a definition, causing it to be validated as a standard node.
Checklist
npm run testto verify the unit tests pass