getezy / ezy

🔥 GUI client for gRPC/gRPC-Web
https://getezy.dev
Mozilla Public License 2.0
974 stars 16 forks source link

[BUG] Could not create collection if proto file contains google.protobuf.EnumValueOptions #53

Open heggi opened 10 months ago

heggi commented 10 months ago

Describe the bug Creating collection with proto file contains extend google.protobuf.EnumValueOptions throw error object must be a valid nested object

Minimal example file:

syntax = "proto3";

import "google/protobuf/descriptor.proto";

extend google.protobuf.EnumValueOptions {
  optional string name = 54321;
}

To Reproduce Steps to reproduce the behavior: Try create collection with minimal example file

Expected behavior Successful created collection

Environment

Additional context

notmedia commented 10 months ago

Hello @heggi! Thank you for your bug report. It seems that the current bug is related to https://github.com/protobufjs/protobuf.js/issues/1709 - please add reactions there.

Under the hood ezy uses protobufjs for parsing proto files and there is an issue with the same problem. I'll ping protobufjs maintainer to fix this.