netjsonconfig
netjsonconfig copied to clipboard
[Fix] Merging with wrong format now raises Validation error #351
An attempt to merge config with wrong format will now raise a validation error instead of failing.
Fixes #351
Checklist
- [x] I have read the OpenWISP Contributing Guidelines.
- [x] I have manually tested the changes proposed in this pull request.
- [x] I have written new test cases for new code and/or updated existing tests for changes to existing code.
- [ ] I have updated the documentation.
Reference to Existing Issue
Closes #351
Description of Changes
Added conditionals to check if two template types can be merged and if not raise validation error instead of failing.