Coder Social home page Coder Social logo

Comments (4)

YaseenAlk avatar YaseenAlk commented on June 8, 2024

I also noticed that oneof options are not recorded (options can be written on enum types, enum values, oneof fields, service types, and service methods).

@nilslice If there is anything I can do to help, let me know! Happy to work on a PR, just wasn't sure if this has been previously rejected. Either way I will likely make these changes to my own fork if they are not desired for the main protolock repo

from protolock.

nilslice avatar nilslice commented on June 8, 2024

Hi @YaseenAlk -

From reading the wiki, it's my understanding that the preferred way to add more rules is to implement them in a plugin, which takes as input a Protolock go struct that is built from the output of the proto parser.

Yes, that's right - a plugin is probably the best way to go. Ideally protolock itself is only about catching compatibility issues on the most critical & common kinds of API changes. There are some examples in different languages (Go, JS) in the plugin-sames dir.

I would like to hear your thoughts on this and whether this was previously considered and rejected, or if there is a way to find oneofs in the plugins that I am not aware of. Happy to also author a PR or help out however I can! [...] I also noticed that oneof options are not recorded (options can be written on enum types, enum values, oneof fields, service types, and service methods).

There are a few places where there may be missing implementations (though I believe protolock is fairly comprehensive), and I would love to have help filling in any gaps you find. With regard to your specific need, I think recording options on oneof types is a great addition, and a PR would be welcomed.

Thank you!

from protolock.

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.