-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avro schema union types generate object type (#250)
* initial implementation; needs testing and clean up * added toString() call on objects in toString() method; created snapshot * fix linting issues
- Loading branch information
1 parent
5d9afdd
commit a5d6d23
Showing
5 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
components: | ||
schemas: {} | ||
messages: | ||
JobOrder: | ||
payload: | ||
name: "JobOrder" | ||
namespace: "com.example.api.jobOrder" | ||
doc: "JobOrder" | ||
type: "record" | ||
fields: | ||
- name: "jobOrderId" | ||
doc: "JobOrderID" | ||
type: "string" | ||
- name: "jobOrderDescription" | ||
doc: "JobOrderDescription" | ||
type: | ||
- "null" | ||
- "string" | ||
- name: "jobOrderLongDescription" | ||
doc: "JobOrderLongDescription" | ||
type: | ||
- "null" | ||
- "string" | ||
schemaFormat: "application/vnd.apache.avro+json;version=1.9.0" | ||
contentType: "application/vnd.apache.avro+json" | ||
servers: | ||
production: | ||
protocol: "kafka" | ||
url: "xxxxx.us-east-2.aws.confluent.cloud:9092" | ||
channels: | ||
test.jobs.order: | ||
subscribe: | ||
message: | ||
$ref: "#/components/messages/JobOrder" | ||
asyncapi: "2.0.0" | ||
info: | ||
x-generated-time: "2022-02-24 01:18 UTC" | ||
description: "" | ||
title: "Union Types" | ||
x-view: "provider" | ||
version: "1" |