Comments (7)
Hello,
Thank you for using the plugin.
Can you elaborate on what's in the original subject and what's in the local subject (redacted) ? In the example it is referenced twice (as output and as reference) :
subject('ccc.SomeItem', 'src/main/avro/SomeItem.avsc', 'AVRO').addLocalReference('SomeItem', 'src/main/avro/SomeItem.avsc')
It would help me reproduce and then fix.
Thank you.
from schema-registry-plugin.
Hi,
I am getting the exact same error on version 1.9.0.
Here's an example of my setup:
subject("com.example.some.task.tasks-value",
"src/main/avro/task.avsc",
"AVRO")
.addLocalReference("Recurrence",
"src/main/avro/recurrence.avsc")
from schema-registry-plugin.
@emmeblm, is your localReference used twice in "task.avsc" ?
If so I think this is the same issue as #130. I am fairly close to solve the issue right now but you can stick to 1.8.0 for now.
Sorry for the long response I thought that I had sent this message 😅
from schema-registry-plugin.
Hello!
Sorry for the very late reply.
Sadly no. My local reference is only used once. Here's how they look in essence:
task.avsc
{
"type": "record",
"name": "Task",
"namespace": "com.org.my.custom.task.model",
"doc": "Some doc",
"fields": [
{
"name": "id",
"doc": "Some doc",
"type": "string"
},
{
"name": "version",
"type": "int"
},
{
"name": "aField",
"doc": "Some doc",
"type": "string"
},
{
"name": "anotherField",
"doc": "Some doc",
"type": "string"
},
{
"name": "recurrence",
"doc": "Some doc",
"type": "com.org.my.custom.task.model.Recurrence"
},
{
"name": "arrayField",
"doc": "Some doc",
"type": {
"type": "array",
"items": "string"
}
},
{
"name": "someOtherField",
"doc": "Some doc",
"type": "string"
}
]
}
recurrence.avsc
{
"type": "record",
"name": "Recurrence",
"namespace": "com.org.my.custom.task.model",
"doc": "Some doc",
"fields": [
{
"name": "aField",
"doc": "Some doc",
"type": "string"
},
{
"name": "anotherField",
"doc": "Some doc",
"type": [
"null",
"int"
],
"default": null
},
{
"name": "yetAnotherField",
"doc": "Some doc",
"type": "string"
},
{
"name": "yetYetAnotherField",
"doc": "Some doc",
"type": [
"null",
"string"
],
"default": null
}
]
}
Hope this helps troubleshoot the issue!
from schema-registry-plugin.
Hello @martinformi and @emmeblm. I've just released the version 1.11.1. Can you try with this version to see if the issue was related ?
NB: It requires to add Jitpack in the build repository (see README) because we are now using a custom Avro version to allow us to handle correctly local + remote dependency mixing in Avro.
Thanks
from schema-registry-plugin.
Hi @ImFlog
Version 1.11.1 seems to have solved the issue for me. Thanks!
from schema-registry-plugin.
I'm closing this then, if anything still fail for you @martinformi do not hesitate to reopen an issue.
from schema-registry-plugin.
Related Issues (20)
- Plugin dependency org.apache.avro:avro:1.12.0-ImFlog missing in version 1.11.1 HOT 2
- Dependency avro-1.11.2 not found HOT 1
- JSON local reference HOT 4
- Support for attaching @Nullable annotation on nullable fields HOT 2
- SchemaParseException during testSchemasTask HOT 2
- Dependency "com.github.ImFlog.avro:avro:1.11.2" not resolvable HOT 1
- Fat jar all the thing ? HOT 1
- Support Gradle 8.X.X
- DownloadTask should download all referenced schemas HOT 7
- Ability to toggle pretty-print of outputted schema files for Avro/JSON formats HOT 6
- NoSuchMethodError with openapi generator since 1.12.0 HOT 12
- Support for IDL language(`.avdl`) HOT 1
- Update forked avro plugin HOT 1
- Issues registering schema via gradle 8.2.1 HOT 3
- Recursively download schema references
- Configure registry client with a map HOT 2
- Does the "name" argument to "addReference" and "addLocalReference" do anything when using Avro schemas? HOT 2
- Add new Kafka versions to the test matrix in Github Action
- Support for AVDL HOT 1
- Support custom root dir for Protobuf local references
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schema-registry-plugin.