[YAML] Fix -Wcovered-switch-default