Giter Club home page Giter Club logo

Comments (5)

jcrossley3 avatar jcrossley3 commented on August 11, 2024

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.

nkconnor avatar nkconnor commented on August 11, 2024

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.

jcrossley3 avatar jcrossley3 commented on August 11, 2024

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.

nkconnor avatar nkconnor commented on August 11, 2024

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.

jcrossley3 avatar jcrossley3 commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.