zolyfarkas commented on pull request #869:
URL: https://github.com/apache/avro/pull/869#issuecomment-621802979


   It would be nice to expose Schema.Names for the purpose of customizing 
schema reference resolution. 
   
   Here are the use cases I have:
   
   1) Avsc files referencing other schemas by name, declared in other avsc 
files.(without the need to rely on any specific processing order). I have 
implemented this in a [custom maven 
plugin](http://www.spf4j.org/spf4j-avro-components/maven-avro-schema-plugin/index.html)
  and had to use various hacks to get it done/ 
[see](https://github.com/zolyfarkas/spf4j/blob/master/spf4j-avro-components/maven-avro-schema-plugin/src/main/java/org/spf4j/maven/plugin/avro/avscp/SchemaCompileMojo.java#L350)
 basically use the same resolution mechanism used by the avdl+avpr.
   
   2) Custom references. ability to refer to a schema published to a repo like: 
{"$ref":"org.spf4j.demo:jaxrs-spf4j-demo-schema:0.3:2"}. For a detailed 
description 
[see](https://github.com/zolyfarkas/jaxrs-spf4j-demo/wiki/AvroReferences)
   
   Probably worthwhile to create a new JIRA for this, or a AEP? 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to