[PATCH 5/7] src & network_conf: add validation against schema in define