YAMLGenerator does not quote empty strings if MINIMIZE_QUOTES is enabled. The YAML 1.2 spec says that [plain (unquoted) scalars cannot be empty](http://yaml.org/spec/1.2/spec.html#id2788859) i.e. an empty string must always be quoted. ``` YAMLFactory f = new YAMLFactory(); f.configure(YAMLGenerator.Feature.MINIMIZE_QUOTES, true); YAMLMapper mapper = new YAMLMapper(f); Map<String, Object> content = new HashMap<>(); content.put("key", ""); String yaml = mapper.writeValueAsString(content).trim(); assertEquals("---\nkey: \"\"", yaml); // fails - actual output is "---\nkey:" ```