Commit Graph

3 Commits

Author SHA1 Message Date
Jon Skeet 4dd0f93b55 First pass at data-driven conformance tests
These use the test files from
https://github.com/cloudevents/conformance/tree/format-tests/format,
which is included via a submodule called conformance.

The XML tests are not included in this commit, as the C# XML formatter
has not been reviewed yet.

Signed-off-by: Jon Skeet <jonskeet@google.com>
2023-04-21 08:27:33 +01:00
Jon Skeet b188ee8a8b Regenerate protobuf with the right filename
For some reason we were renaming cloudevents.proto as ProtoSchema.proto, which breaks compatibility with anyone using the original file.

Renaming the reflection class is a breaking change, so I've added an obsolete compatibility class to keep compatibility.
Also updated to Google.Protobuf 3.22.0 (of the general protobuf 22.0 release; protobuf versioning is complex).

Fixes #256

Signed-off-by: Jon Skeet <jonskeet@google.com>
2023-03-06 19:51:46 +00:00
Jon Skeet 0349eeb274 feat: Add a Protobuf event formatter
Further features may be added later, e.g. convenience methods.

Signed-off-by: Jon Skeet <jonskeet@google.com>
2022-02-01 09:44:35 +00:00