[ 
https://issues.apache.org/jira/browse/NIFI-5271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16503585#comment-16503585
 ] 

ASF GitHub Bot commented on NIFI-5271:
--------------------------------------

Github user MikeThomsen commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2765#discussion_r193487112
  
    --- Diff: 
nifi-commons/nifi-json-utils/src/main/java/org/apache/nifi/processor/util/JsonValidator.java
 ---
    @@ -0,0 +1,48 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.nifi.processor.util;
    +
    +import com.fasterxml.jackson.databind.ObjectMapper;
    +import org.apache.nifi.components.ValidationContext;
    +import org.apache.nifi.components.ValidationResult;
    +import org.apache.nifi.components.Validator;
    +
    +import java.util.List;
    +import java.util.Map;
    +
    +public class JsonValidator implements Validator {
    +    private ObjectMapper mapper = new ObjectMapper();
    --- End diff --
    
    Ok. L&N feedback?


> Move JSON Validator to a separate package and verify license/notice
> -------------------------------------------------------------------
>
>                 Key: NIFI-5271
>                 URL: https://issues.apache.org/jira/browse/NIFI-5271
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Mike Thomsen
>            Assignee: Mike Thomsen
>            Priority: Major
>
> The JSON Validator in 5261 did not get its L&N verified and it should be 
> moved to a separate validator module to keep Gson from being bundled where 
> it's not needed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to