Add DataYangPatchParams
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / jaxrs / JaxRsRestconf.java
index ac8bf7459a899bf9dee216def68e1bb18c403bc8..54fb661e24e2ab0cc7c7d3f12fe7cc8b998c65d1 100644 (file)
@@ -46,7 +46,6 @@ import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.restconf.api.ApiPath;
 import org.opendaylight.restconf.api.FormattableBody;
 import org.opendaylight.restconf.api.MediaTypes;
-import org.opendaylight.restconf.api.query.PrettyPrintParam;
 import org.opendaylight.restconf.common.errors.RestconfDocumentedException;
 import org.opendaylight.restconf.common.errors.RestconfError;
 import org.opendaylight.restconf.common.errors.RestconfFuture;
@@ -400,7 +399,7 @@ public final class JaxRsRestconf implements ParamConverterProvider {
             Response transform(final DataYangPatchResult result) {
                 final var status = result.status();
                 final var builder = Response.status(statusOf(status))
-                    .entity(new YangPatchStatusBody(() -> PrettyPrintParam.FALSE, status));
+                    .entity(new YangPatchStatusBody(result.params(), status));
                 fillConfigurationMetadata(builder, result);
                 return builder.build();
             }