cloud-init
cloud-init copied to clipboard
fix(schema): allow networkv2 schema without top-level key
During validation process, the network schema is extracted without the network key. As such, the schema validation should work either with or without the top level network key. This change updates the schema and adds a unit test to validate.
Proposed Commit Message
fix(schema): allow networkv2 schema without top-level key
During validation process, the network schema is extracted without
the network key. As such, the schema validation should work
either with or without the top level network key. This change
updates the schema and adds a unit test to validate.
Additional Context
This was causing failing integrations tests due to false negative schema validation errors.
Test Steps
Checklist
- [x] My code follows the process laid out in the documentation
- [x] I have updated or added any unit tests accordingly
- [ ] I have updated or added any documentation accordingly
Merge type
- [x] Squash merge using "Proposed Commit Message"
- [ ] Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)