-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support unchanged status on schemas (#344)
* Handling unchanged status for schema * Fixing tests * Fixing repositories * Fixing checkstyle issues * Light refactoring * Check all the subject versions for unchanged schema * Fix checkstyle * Complete integration test for avro references * Add schema with references in docker demo. Fix NPE on unknown reference. Refactor schema validation * Simplify references validation --------- Co-authored-by: Loïc Greffier <[email protected]>
- Loading branch information
1 parent
27a37ca
commit 0e369c5
Showing
12 changed files
with
701 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Schema | ||
metadata: | ||
name: abc.header-value | ||
spec: | ||
schema: | | ||
{ | ||
"namespace": "io.github.michelin.ns4kafka.avro", | ||
"type": "record", | ||
"name": "KafkaHeader", | ||
"fields": [ | ||
{ | ||
"name": "id", | ||
"type": "long" | ||
} | ||
] | ||
} | ||
--- | ||
apiVersion: v1 | ||
kind: Schema | ||
metadata: | ||
name: abc.person-value | ||
spec: | ||
schema: | | ||
{ | ||
"namespace": "io.github.michelin.ns4kafka.avro", | ||
"type": "record", | ||
"name": "KafkaPerson", | ||
"fields": [ | ||
{ | ||
"name": "header", | ||
"type": "io.github.michelin.ns4kafka.avro.KafkaHeader" | ||
}, | ||
{ | ||
"name": "firstName", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "lastName", | ||
"type": "string" | ||
} | ||
] | ||
} | ||
references: | ||
- name: io.github.michelin.ns4kafka.avro.KafkaHeader | ||
subject: abc.header-value | ||
version: 1 |
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
Oops, something went wrong.