Rumeshkrishnan created AVRO-2299:
------------------------------------
Summary: Get Plain Schema
Key: AVRO-2299
URL: https://issues.apache.org/jira/browse/AVRO-2299
Project: Apache Avro
Issue Type: New Feature
Components: java
Affects Versions: 1.8.2
Reporter: Rumeshkrishnan
Fix For: 1.9.0, 1.8.3, 1.8.4
Schema has `name`, `type`, `namespace`, `doc`, `fields` and some other keys
related to AVRO specification. AVRO support the user defined properties with
Schema or Field. Is there way to get only schema without user defined
properties. ?
Input Schema:
{code:java}
{
"name": "testSchema",
"namespace": "com.avro",
"type": "record",
"fields": [
{
"name": "email",
"type": "string",
"doc": "email id",
"user_field_prop": "xxxxx"
}
],
"user_schema_prop": "xxxxxx"
}{code}
Expected Plain Schema:
{code:java}
{
"name": "testSchema",
"namespace": "com.avro",
"type": "record",
"fields": [
{
"name": "email",
"type": "string",
"doc": "email id"
}
]
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)