Code Monkey home page Code Monkey logo

Comments (5)

timburks avatar timburks commented on May 21, 2024

Here is a good list of extension sets that would provide some good validation for gnostic extensions.

from gnostic.

guptasu avatar guptasu commented on May 21, 2024

Issue acknowledged, will take a look. Currently swamped with other tasks.

Resolving this is going to be tricky because google.protobuf.Any type can only represent Message types. Since we are using google.protobuf.Any to represent extensions, we will need to use wrapper types to convert primitives into google.protobuf.Any when reading an extension of type int/string etc. This can cause usability issue in the extension handers where author of the extension hander will have to unwrap the wrappertype by doing something like in java :

StringValue s = .. read string value from Any Type..
string extensionString = s.value.

need to dig more on to understand if this is the only route we have.

from gnostic.

MikeRalphson avatar MikeRalphson commented on May 21, 2024

If you filter this list by object you can find more examples.

from gnostic.

timburks avatar timburks commented on May 21, 2024

@guptasu Something like a wrapper type SGTM. We should mock up a few samples to be sure.

@MikeRalphson Thanks, that's fantastic!

from gnostic.

timburks avatar timburks commented on May 21, 2024

Resolved in PR #44.

from gnostic.

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.