Giter VIP home page Giter VIP logo

Comments (8)

tomas-abrahamsson avatar tomas-abrahamsson commented on July 30, 2024

I see. I think options at the time of writing that sentence about being ignored, were maybe only allowed after an enumerator, in any case I didn't foresee it at that position.

Ignoring the option at encoding would be rather easy, I think. On decoding, I suppose a reasonable approach could be to decode to the first enumerator symbol, ENUM1 in this case.

I'll take a look at it, hopefully during the weekend.

from gpb.

bb4242 avatar bb4242 commented on July 30, 2024

Yeah, I agree with your points: ignoring the option at encoding, and decoding to the first enumerator symbol, sounds like very reasonable behavior. Thanks for the library - it's really handy!

from gpb.

tomas-abrahamsson avatar tomas-abrahamsson commented on July 30, 2024

I have pushed a solution, to the branch enum-option-allow_alias. My intention is to try to also include the other issue with maps and optional fields, soon. But if that should get delayed, I will merge this to master, so that at least this won't get held up. (My plan is of course that 'soon' will happens soon, but there's always the unexpected, and meanwhile there's a solution on a branch in case you want to test it out.)

from gpb.

bb4242 avatar bb4242 commented on July 30, 2024

Thanks very much! :) I did a quick test of the new enum-option-allow_alias branch, and that certainly looks to solve the issue I had.

from gpb.

tomas-abrahamsson avatar tomas-abrahamsson commented on July 30, 2024

Good to hear, thanks for quick feedback!

from gpb.

bb4242 avatar bb4242 commented on July 30, 2024

No problem, thanks for the quick fix. :)

from gpb.

tomas-abrahamsson avatar tomas-abrahamsson commented on July 30, 2024

This is now merged to master and in 3.17.8.

from gpb.

bb4242 avatar bb4242 commented on July 30, 2024

Thanks!

from gpb.

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.