The spring-reactive example doesn't follow the http-protocol-binding spec
See original GitHub issueIn the spring-reactive example, it shows the data in “structured” format:
curl -v -H'Content-type: application/cloudevents+json' \
-d '{"data": {"value": "Foo"},
"ce-id: 1,
"ce-source": "cloud-event-example"
"ce-type": "my.application.Foo"
"ce-specversion": "1.0"}' \
http://localhost:8080/event
While in the http-protocol-binding spec, it shows the structured mode:
PUT /myresource HTTP/1.1
Host: webhook.example.com
Content-Type: application/cloudevents+json; charset=utf-8
Content-Length: nnnn
{
"specversion" : "1.0",
"type" : "com.example.someevent",
... further attributes omitted ...
"data" : {
... application data ...
}
}
The example adds the prefix ce-
to all cloudevents filed except data
, is it just a documentation error?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Web on Reactive Stack - Spring
Reactive Streams is a small spec (also adopted in Java 9) that defines the interaction between asynchronous components with back pressure. For ...
Read more >Spring 5 Reactive fails when extending Flux/implementing ...
My Publisher implementation didn't follow the reactive streams spec, this is how I fixed it: @GetMapping(value="/strings" ...
Read more >Spring 5 WebClient - Baeldung
In this tutorial, we're going to examine WebClient, which is a reactive web client introduced in Spring 5. We're also going to look...
Read more >Micronaut Data - GitHub Pages
Micronaut Data is a database access toolkit that uses Ahead of Time (AoT) compilation to pre-compute queries for repository interfaces that are then ......
Read more >salesforce/reactive-grpc: Reactive stubs for gRPC - GitHub
Reactive gRPC supports the following reactive programming models: RxJava 2 · Spring Reactor · Akka gRPC is now mature and production ready. Use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The example is wrong. The tests in the sample project verify that the behaviour is correct, I think. I’m happy for someone else to fix it and verify.
Yep, just checked, we’re good now. Thanks for double checking!