Comments (5)
Hey, thanks for the bug report! I believe the problem is with using "#"
as the value for dataschema
. If I'm interpreting the spec correctly, I believe that needs to be an absolute URI.
Am I missing something in the spec that would make "#"
a valid dataschema
?
from sdk-rust.
Unsure, but as you say: https://github.com/cloudevents/spec/blob/master/spec.md#dataschema points to #
being technically invalid.
This is an event generated by Azure using 1.0 schema. As a user I have no way to alter the event.
from sdk-rust.
Is there some change to this library that would help you short of accepting an invalid event? Is there no way you can filter out the invalid fields before invoking sdk-rust?
from sdk-rust.
Is there some change to this library that would help you short of accepting an invalid event?
The use case was to receive CloudEvent data from Azure cloud. The data cannot be received via this library.
Is there no way you can filter out the invalid fields before invoking sdk-rust?
Yes, but that defeats the purpose. I completely removed the library because it was unhelpful.
--
FWIW, a quick scan on the other SDKs says this validation is not enforced across the board. What to do is beyond my pay grade.
from sdk-rust.
Closing for now. Maybe in the future we can introduce some sort of "lenient" mode if Azure insists on sending dataschema=#
, but I feel like that's a bug on their side.
from sdk-rust.
Related Issues (20)
- Refactor/consolidate header logic/macros/globals
- Add Axum binding HOT 1
- Fails to parse event which has non-JSON data section with JSON content type HOT 3
- fail to get vec<u8>: "invalid type: map, expected a sequence", line: 1, column: 0 HOT 3
- Use Axum 0.4.0
- Switch default branch to "main" HOT 1
- Upgrade `uuid` to version `1.x`
- msgpack serialization HOT 2
- Protobuf serialization HOT 7
- bump version of axum
- remove dev dependency claim HOT 3
- Event does not have `new` method
- Example for using tracing extension and messages HOT 2
- How to send/emit cloud events HOT 2
- How to serialize/deserialize Vec<Event> in actix-web?
- application/json content type set with reqwest integration insetad of expected application/cloudevents+json HOT 1
- Implementation for KafkaRecord / blanket implementation HOT 1
- Upgrade to axum ^0.7 HOT 13
- Printing `Data` panics when it holds binary data containing invalid UTF-8 sequences
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk-rust.