Skip to content

Conversation

rayokota
Copy link
Member

@rayokota rayokota commented Feb 20, 2025

What

Support Protobuf oneof fields in Data Contract rules.

The file Person.cs is generated and can be ignored.

Checklist

  • Contains customer facing changes? Including API/behavior changes
  • Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

@Copilot Copilot AI review requested due to automatic review settings February 20, 2025 19:03
@rayokota rayokota requested review from a team as code owners February 20, 2025 19:03
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

test/Confluent.SchemaRegistry.Serdes.UnitTests/ProtoSerializeDeserialize.cs:251

  • [nitpick] Now that oneof fields are supported, please consider adding tests for scenarios when oneof_int32 is set to ensure both oneof field types are properly handled.
Assert.Equal("oneof-suffix", result.OneofString);

"CgxQZXJzb24ucHJvdG8SB2V4YW1wbGUiRwoGUGVyc29uEhYKDmZhdm9yaXRl",
"X2NvbG9yGAEgASgJEhcKD2Zhdm9yaXRlX251bWJlchgCIAEoBRIMCgRuYW1l",
"GAMgASgJYgZwcm90bzM="));
"CgxQZXJzb24ucHJvdG8SB2V4YW1wbGUigwEKBlBlcnNvbhIWCg5mYXZvcml0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is generated and can be ignored.

@sonarqube-confluent
Copy link

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage 100.00% Coverage (77.40% Estimated after merge)
  • Duplications No duplication information (0.00% Estimated after merge)

Project ID: confluent-kafka-dotnet

View in SonarQube

@rayokota rayokota merged commit 7ae5242 into master Feb 20, 2025
1 of 2 checks passed
@rayokota rayokota deleted the DGS-19711 branch February 20, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants