Giter VIP home page Giter VIP logo

Comments (3)

jhump avatar jhump commented on May 20, 2024 1

@facundomedica, thanks for that. I was able to reproduce. Apparently, I totally failed when I pushed the supposed fix. Real fix incoming...

from grpcui.

jhump avatar jhump commented on May 20, 2024

After making sure you've updated to that sha and recompiled, if it still happens, do you mind sending me a sample proto file and steps to reproduce (e.g. which field and what value to try)? Maybe there's something subtle I missed such that my earlier fix isn't correctly applied to all manner of signed ints... Having a repro case would help me find it.

from grpcui.

facundomedica avatar facundomedica commented on May 20, 2024

@jhump sorry for the delay, here you go. It's weird, because an int32 can be set as negative but int64 can't

syntax = "proto3";
option go_package = "admin";
package admin;
import "google/protobuf/empty.proto";

service Admin {
    rpc SomeService(SomeMessage) returns (google.protobuf.Empty) {}
}
message SomeMessage {
  string user_id = 1;
  int64 amount = 2; // in this field I get the error
  int32 currency = 3; // but this one can be negative with no complains
  string message = 4;
}

from grpcui.

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.