If you are building stuff with #cloudinit then there are

cloud-init schema -c user-data
cloud-init schema -c network-config -t network-config

to validate your files. (brought to you by an hour of suffering)