You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if we could support to get only interface declaration with json_name defined in a proto file, in other words when onlyTypes=true are set, wanna get fields from json_name defined in a proto file.
The text was updated successfully, but these errors were encountered:
Yo-mah-Ya
changed the title
Enhancement: json_name should be able to be extracted even when outputJsonMethods=false is given.
Enhancement: json_name defined in a proto file should be able to be extracted.
Oct 9, 2023
I'm wondering if we could support to get only interface declaration with
json_name
defined in a proto file, in other words whenonlyTypes=true
are set, wanna get fields fromjson_name
defined in a proto file.For example, I want the
json_name
namedAlias
shown below proto file. The first letter should be capitalized !https://github.com/pganalyze/libpg_query/blob/009f19d7f867a699e1beab5fd545fbc07ad35647/protobuf/pg_query.proto#L19
But as long as I see the below part, it seems that only field name, possibly modified by maybeSnakeToCamel though, is supported.
ts-proto/src/main.ts
Lines 877 to 880 in 1283602
Ideally I'd like to get field name like shown below.
https://github.com/thesayyn/protoc-gen-ts/blob/a5c306a0d1d864ce5bc1887dfef078d76c0efcc0/src/descriptor.ts#L15-L20
The text was updated successfully, but these errors were encountered: