From 6a25ea10012790ce5ce1d8da7bba5b9e8e6893a7 Mon Sep 17 00:00:00 2001 From: Yuki Iwanaga Date: Wed, 30 Sep 2020 14:35:20 +0900 Subject: [PATCH 1/2] Fix case --- src/utils.ts | 4 ++-- test/skip/input.proto | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index d559377..ac931c6 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -83,8 +83,8 @@ export interface GenerateOption { } export function getGenerateOption(field: protobuf.Field): GenerateOption { return { - skipOnType: !!field.options?.["proto2graphql.option.skipOnType"], - skipOnInput: !!field.options?.["proto2graphql.option.skipOnInput"], + skipOnType: !!field.options?.["proto2graphql.option.skip_on_type"], + skipOnInput: !!field.options?.["proto2graphql.option.skip_on_input"], }; } diff --git a/test/skip/input.proto b/test/skip/input.proto index c945cc9..22bbbc7 100644 --- a/test/skip/input.proto +++ b/test/skip/input.proto @@ -3,7 +3,7 @@ syntax = "proto3"; import "proto2graphql/option.proto"; message TypeA { - string skipOnType = 1 [ proto2graphql.option.skipOnType = true ]; - string skipOnInput = 2 [ proto2graphql.option.skipOnInput = true ]; - string skipOnTypeAndInput = 3 [ proto2graphql.option.skipOnType = true, proto2graphql.option.skipOnInput = true ]; + string skipOnType = 1 [ proto2graphql.option.skip_on_type = true ]; + string skipOnInput = 2 [ proto2graphql.option.skip_on_input = true ]; + string skipOnTypeAndInput = 3 [ proto2graphql.option.skip_on_type = true, proto2graphql.option.skip_on_input = true ]; } From f5208ae9be7c04cea40debaa7c83cc516b40a758 Mon Sep 17 00:00:00 2001 From: Yuki Iwanaga Date: Wed, 30 Sep 2020 14:36:32 +0900 Subject: [PATCH 2/2] Bump version to 0.2.6-alpha --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 070c13a..9adfc29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bw-company/proto2graphql", - "version": "0.2.5-alpha", + "version": "0.2.6-alpha", "main": "dist/index.js", "types": "dist/index.d.ts", "description": "Converts schema definitions in Protocol Buffer to GraphQL",