You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ds...@apache.org on 2024/04/19 14:51:39 UTC

(nifi) branch NIFI-13069 created (now 55907c0e55)

This is an automated email from the ASF dual-hosted git repository.

dstiggy pushed a change to branch NIFI-13069
in repository https://gitbox.apache.org/repos/asf/nifi.git


      at 55907c0e55 NIFI-13069 Deprecated ConvertAvroToJSON

This branch includes the following new commits:

     new 55907c0e55 NIFI-13069 Deprecated ConvertAvroToJSON

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(nifi) 01/01: NIFI-13069 Deprecated ConvertAvroToJSON

Posted by ds...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dstiggy pushed a commit to branch NIFI-13069
in repository https://gitbox.apache.org/repos/asf/nifi.git

commit 55907c0e55c427b5b6fd50b71c0615f968d07aea
Author: dan-s1 <ds...@gmail.com>
AuthorDate: Fri Apr 19 14:50:15 2024 +0000

    NIFI-13069 Deprecated ConvertAvroToJSON
---
 .../main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java  | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java b/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java
index 2ddf66e4d1..f89be51123 100644
--- a/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java
+++ b/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java
@@ -42,6 +42,7 @@ import org.apache.nifi.annotation.behavior.SideEffectFree;
 import org.apache.nifi.annotation.behavior.SupportsBatching;
 import org.apache.nifi.annotation.behavior.WritesAttribute;
 import org.apache.nifi.annotation.documentation.CapabilityDescription;
+import org.apache.nifi.annotation.documentation.DeprecationNotice;
 import org.apache.nifi.annotation.documentation.Tags;
 import org.apache.nifi.components.PropertyDescriptor;
 import org.apache.nifi.flowfile.FlowFile;
@@ -65,6 +66,9 @@ import org.apache.nifi.processor.util.StandardValidators;
     + "multiple Avro records, the resultant FlowFile will contain a JSON Array containing all of the Avro records or a sequence of JSON Objects.  If an incoming FlowFile does "
     + "not contain any records, an empty JSON object is the output. Empty/Single Avro record FlowFile inputs are optionally wrapped in a container as dictated by 'Wrap Single Record'")
 @WritesAttribute(attribute = "mime.type", description = "Sets the mime type to application/json")
+@DeprecationNotice(reason = "ConvertAvroToJSON is no longer needed since there is the AvroReader which along with JsonRecordSetWriter" +
+        " can be used in ConvertRecord to achieve the same thing.",
+        classNames = {"org.apache.nifi.avro.AvroReader", "org.apache.nifi.json.JsonRecordSetWriter", "org.apache.nifi.processors.standard.ConvertRecord"})
 public class ConvertAvroToJSON extends AbstractProcessor {
     protected static final String CONTAINER_ARRAY = "array";
     protected static final String CONTAINER_NONE = "none";