In javascript language, it fails when loading proto.
https://github.com/activeguild/use-proto-fieldoption/blob/a153663f1c41565e8cb06e9e6a9f4887845d6d14/index.ts#L11

This is a problem with the javascript library, which means that it is 
possible by design.

2020年5月7日木曜日 10時13分55秒 UTC+9 Derek Perez:
>
>
> https://stackoverflow.com/questions/28737317/protobuf-repeated-message-option
>  
> Has an example of how one might do this, you can repeat the option as 
> well. However, the array syntax should also be acceptable.
>
> On Wed, May 6, 2020 at 6:09 PM mustache_master <[email protected] 
> <javascript:>> wrote:
>
>> Thank you.
>> No I dosen't, I got the same error.
>>
>> Can't I use the repeated attributes as an options?  
>>
>> 2020年4月24日金曜日 11時48分59秒 UTC+9 David L. Jones:
>>>
>>> It looks like this:
>>>
>>>       types: ["1"]
>>>
>>> should be:
>>>
>>>       type: ["1"]
>>>
>>> Does that change fix the error?
>>>
>>> On Thursday, April 23, 2020 at 7:16:31 PM UTC-7, mustache_master wrote:
>>>>
>>>>
>>>> Can custom option be set to repeated?
>>>>
>>>> sample code
>>>> syntax = "proto3";
>>>>
>>>> package sample;
>>>>
>>>> import "google/protobuf/descriptor.proto";
>>>>
>>>> extend google.protobuf.FieldOptions {
>>>>   Scope scope = 50000;
>>>> }
>>>>
>>>> message Scope {
>>>>   repeated string type = 1;
>>>> }
>>>>
>>>> message Sample {
>>>>   uint64 id = 1 [
>>>>     (scope) = {
>>>>       types: ["1"]
>>>>     }
>>>>   ];
>>>> }ここにコードを入力...
>>>>
>>>> sample repository
>>>> https://github.com/activeguild/use-proto-fieldoption
>>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/protobuf/948b0619-56d3-43a4-980e-4f80f071379b%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/protobuf/948b0619-56d3-43a4-980e-4f80f071379b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/26c01655-1dc3-444d-991d-b908d6663aaf%40googlegroups.com.

Reply via email to