diff --git a/crd-generator/api/src/main/java/io/fabric8/crd/generator/v1/JsonSchema.java b/crd-generator/api/src/main/java/io/fabric8/crd/generator/v1/JsonSchema.java index 116cf087b96..5e014d83f8b 100644 --- a/crd-generator/api/src/main/java/io/fabric8/crd/generator/v1/JsonSchema.java +++ b/crd-generator/api/src/main/java/io/fabric8/crd/generator/v1/JsonSchema.java @@ -66,7 +66,7 @@ public JSONSchemaPropsBuilder newBuilder(String type) { public void addProperty(Property property, JSONSchemaPropsBuilder builder, JSONSchemaProps schema, SchemaPropsOptions options) { if (schema != null) { - options.getDefault().ifPresent( s -> { + options.getDefault().ifPresent(s -> { try { schema.setDefault(YAML_MAPPER.readTree(s)); } catch (JsonProcessingException e) { diff --git a/crd-generator/api/src/main/java/io/fabric8/crd/generator/v1beta1/JsonSchema.java b/crd-generator/api/src/main/java/io/fabric8/crd/generator/v1beta1/JsonSchema.java index c2a25ec773c..8d699a87174 100644 --- a/crd-generator/api/src/main/java/io/fabric8/crd/generator/v1beta1/JsonSchema.java +++ b/crd-generator/api/src/main/java/io/fabric8/crd/generator/v1beta1/JsonSchema.java @@ -67,7 +67,7 @@ public JSONSchemaPropsBuilder newBuilder(String type) { public void addProperty(Property property, JSONSchemaPropsBuilder builder, JSONSchemaProps schema, SchemaPropsOptions options) { if (schema != null) { - options.getDefault().ifPresent( s -> { + options.getDefault().ifPresent(s -> { try { schema.setDefault(YAML_MAPPER.readTree(s)); } catch (JsonProcessingException e) {