[
https://issues.apache.org/jira/browse/AVRO-3895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grzegorz Liter updated AVRO-3895:
---------------------------------
Description:
When specifying a {{record}} it could be possible to define interfaces that
should be implemented. E.g.
{code:java}
{
"namespace": "com.example.avro.model",
"type": "record",
"name": "EventRecord",
"fields": [
{ "name": "timestamp", "type": "long" },
{ "name": "data", "type": ["null", "string"], "default": null }
]
}{code}
was:
When specifying a {{record}} it could be possible to define interfaces that
should be implemented. E.g.
{{{}}
{{ "namespace": "com.example.avro.model",}}
{{ "type": "record",}}
{{ "name": "EventRecord",}}
{{ "fields": [}}
{{ }}{{{}{ "name": "timestamp", "type": "long" }{}}}{{{},{}}}
{{ }}{{{ "name": "data", "type": ["null", "string"], "default": null }}}
{{ ]}}
{{}}}
> Allowing record to implement custom interface in Java template
> --------------------------------------------------------------
>
> Key: AVRO-3895
> URL: https://issues.apache.org/jira/browse/AVRO-3895
> Project: Apache Avro
> Issue Type: Improvement
> Reporter: Grzegorz Liter
> Priority: Minor
>
> When specifying a {{record}} it could be possible to define interfaces that
> should be implemented. E.g.
> {code:java}
> {
> "namespace": "com.example.avro.model",
> "type": "record",
> "name": "EventRecord",
> "fields": [
> { "name": "timestamp", "type": "long" },
> { "name": "data", "type": ["null", "string"], "default": null }
> ]
> }{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)