AbsaOSS / AbsaOSS/enceladus

Import Avro schema from subject definitions

オープン
#1,403 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature Menas priority: medium request
主要言語
Scala
スター
33
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

説明

## Background
Currently, if the Confluent control panel can show an Avro schema for a topic. But when you click "Download" it downloads a subject definition containing key and value schemas as JSON fields.

## Feature
Add ability for the Avro schema uploader to recognize that the JSON is a full subject definition. If that is the case:
- Extract key and value schemas (or only one of them if only one of them is present)
- Combine the key schema with the value schema by appending value schema after the key schema.
- Import such a combined schema to Menas.

## Additional context
We support:
```json
{
"type": "record",
"name": "test",
"namespace": "some.name.space",
"fields": [
{
"name": "id",
"type": [
"null",
"int"
]
}
]
}
```

but we also need to support
```json
{
"subject": "some.subject.topic-value",
"version": 1,
"id": 2,
"schema": "{\"type\":\"record\",\"name\":\"test\",\"namespace\":\"some.name.space\",\"fields\":[{\"name\":\"id\",\"type\":[\"null\",\"int\"]}]}"
}
```
*Note. Both JSONs specify the same schema.*

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。