netjsonconfig icon indicating copy to clipboard operation
netjsonconfig copied to clipboard

[Fix] Merging with wrong format now raises Validation error #351

Open stktyagi opened this issue 6 months ago • 1 comments

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.

stktyagi avatar Jun 10 '25 13:06 stktyagi

Coverage Status

coverage: 99.178%. remained the same when pulling a9969bfdc4edd386715023db2fa7d726b829263b on stktyagi:master into 43647b69579ad02e5ffa050b3898c14ea4f31292 on openwisp:master.

coveralls avatar Jun 12 '25 02:06 coveralls