Add a backwards compatibility check for .proto files (#1362)

This commit is contained in:
nakulj 2024-07-12 11:18:54 -07:00 committed by GitHub
parent 3b5c59ec04
commit 5878ba8ac6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 90 additions and 0 deletions

View file

@ -410,6 +410,18 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.salesforce.servicelibs</groupId>
<artifactId>proto-backwards-compatibility</artifactId>
<version>1.0.7</version>
<executions>
<execution>
<goals>
<goal>backwards-compatibility-check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View file

@ -0,0 +1,78 @@
{
"definitions": [
{
"protopath": "messages.proto",
"def": {
"messages": [
{
"name": "Tag",
"fields": [
{
"id": 1,
"name": "key",
"type": "string"
},
{
"id": 2,
"name": "value",
"type": "string"
}
]
},
{
"name": "Record",
"fields": [
{
"id": 1,
"name": "partition_key_index",
"type": "uint64"
},
{
"id": 2,
"name": "explicit_hash_key_index",
"type": "uint64"
},
{
"id": 3,
"name": "data",
"type": "bytes"
},
{
"id": 4,
"name": "tags",
"type": "Tag",
"is_repeated": true
}
]
},
{
"name": "AggregatedRecord",
"fields": [
{
"id": 1,
"name": "partition_key_table",
"type": "string",
"is_repeated": true
},
{
"id": 2,
"name": "explicit_hash_key_table",
"type": "string",
"is_repeated": true
},
{
"id": 3,
"name": "records",
"type": "Record",
"is_repeated": true
}
]
}
],
"package": {
"name": "software.amazon.kinesis.retrieval.kpl"
}
}
}
]
}