Skip to content

Commit c43da3d

Browse files
committed
fix: remove yaml mapper feature minimize quotes
1 parent 1d48342 commit c43da3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/AbstractSchemaArtifact.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
3030
import com.fasterxml.jackson.databind.node.ObjectNode;
3131
import com.fasterxml.jackson.databind.node.TextNode;
32-
import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator;
3332
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
3433
import com.google.common.collect.ImmutableMap;
3534
import com.google.common.collect.Streams;
@@ -138,7 +137,7 @@ protected Map<Path, String> getContentWithSeparateSchemasAsYaml( final Optional<
138137

139138
protected String jsonToYaml( final JsonNode json ) {
140139
try {
141-
return new YAMLMapper().enable( YAMLGenerator.Feature.MINIMIZE_QUOTES ).writeValueAsString( json );
140+
return new YAMLMapper().writeValueAsString( json );
142141
} catch ( final JsonProcessingException exception ) {
143142
LOG.error( "JSON could not be converted to YAML", exception );
144143
return json.toString();

0 commit comments

Comments
 (0)