Open Southparkfan opened 10 months ago
What do you mean with non-existent keys exactly? Keys inside a YAML block, which is not used for anything in Vnet-manager?
Catching typos like these is very hard to do with a validator. Maybe it would be better to write a JSON schema for people to load in their IDE, such that it will provide auto-completion on the configuration file.
Yes, that's what I meant. A JSON schema would be perfect for validation, both in IDE (for comfort) and in the validation code itself (to avoid silent failures).
Business as usual, I forgot my ☕:
Obviously, 'evp6' should have been 'ipv6'. However, I didn't get a hard failure during
vnet-manager create
. A configuration without any IPv4 or IPv6 address can be very legitimate, but a configuration with non-existent keys should trigger an error.