question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The spring-reactive example doesn't follow the http-protocol-binding spec

See original GitHub issue

In 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dsyercommented, Apr 28, 2021

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.

0reactions
slinkydevelopercommented, Apr 29, 2021

Yep, just checked, we’re good now. Thanks for double checking!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found