Commit Graph

4 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 b1f29cf25b Support data content type inference
- New methods in CloudEventFormatter to support inference
- JsonEventFormatter infers a content type of application/json for non-binary data
- All transports use the inferred content type when formatting in binary mode
- Documentation for both formatters and bindings has been updated

Signed-off-by: Jon Skeet <jonskeet@google.com>
2022-02-25 07:11:13 +00:00
Jon Skeet e7ebdd7c1c Enable nullable reference types for unit test project
Signed-off-by: Jon Skeet <jonskeet@google.com>
2021-07-10 07:03:43 +01:00
Jon Skeet d4ff2b596e Add methods to copy CloudEvents to HttpResponse
One part of #148

Signed-off-by: Jon Skeet <jonskeet@google.com>
2021-06-30 07:44:33 +01:00