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

Daniel Stieglitz edited comment on NIFI-11627 at 10/20/23 7:09 PM:
-------------------------------------------------------------------

@[~markap14]  [~exceptionfactory] For the initial implementation for this 
Controller Interface, can 
{code:java}
org.apache.nifi.schemaregistry.services.SchemaRegistry{code}
be reused for this? Studying the code it seems AmazonGlueSchemaRegistry and 
ConfluentSchemaRegistry can be reused as they are not specific to any schema 
type but AvroSchemaRegistry cannot as it is specific to Avro. I assume in lieu 
of the AvroSchemaRegistry I would need to develop a JsonSchemaRegistry. If this 
is so where do I place this new ControllerService?

Please confirm. Thanks!


was (Author: JIRAUSER294662):
@[~markap14]  [~exceptionfactory] For the initial implementation for this 
Controller Interface, can 
{code:java}
org.apache.nifi.schemaregistry.services.SchemaRegistry{code}
be reused for this? Studying the code it seems AmazonGlueSchemaRegistry and 
ConfluentSchemaRegistry can be reused as they are not specific to any schema 
type but AvroSchemaRegistry cannot as it is specific to Avro. I assume in lieu 
of the AvroSchemaRegistry I would need to develop a JsonSchemaRegistry.

Please confirm. Thanks!

> Add Dynamic Schema References to ValidateJSON Processor
> -------------------------------------------------------
>
>                 Key: NIFI-11627
>                 URL: https://issues.apache.org/jira/browse/NIFI-11627
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: 1.19.1
>            Reporter: Chuck Tilly
>            Assignee: Daniel Stieglitz
>            Priority: Major
>
> For the ValidateJSON processor, add support for flowfile attribute references 
> that will allow for a JSON schema located in the Parameter Contexts, to be 
> referenced dynamically based on a flowfile attribute. e.g. 
> {code:java}
> #{${schema.name}} {code}
>  
> The benefits of adding support for attribute references are significant.  
> Adding this capability will allow a single processor to be used for all JSON 
> schema validation.  Unfortunately, the current version of this processor 
> requires a dedicated processor for every schema, i.e. 12 schemas requires 12 
> ValidateJSON processors.  This is very laborious to construct and maintain, 
> and resource expensive.  
> ValidateJSON processor (https://issues.apache.org/jira/browse/NIFI-7392)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to