Skip to content

Commit 9cfb97b

Browse files
committed
feat(openapi-preprocess): add Int* message pattern to regex for parsing proto files
1 parent 3abc397 commit 9cfb97b

File tree

1 file changed

+1
-1
lines changed
  • cmd/tools/openapi-preprocess

1 file changed

+1
-1
lines changed

cmd/tools/openapi-preprocess/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var wrapperTypeMappings = map[string]WrapperTypeMapping{
7373
// Regex patterns for parsing proto files.
7474
var (
7575
servicePattern = regexp.MustCompile(`service\s+(\w+)`)
76-
messagePattern = regexp.MustCompile(`^message\s+(List\w+Request|Get\w+Request|Fct\w+|Dim\w+)`)
76+
messagePattern = regexp.MustCompile(`^message\s+(List\w+Request|Get\w+Request|Fct\w+|Dim\w+|Int\w+)`)
7777
fieldCommentPattern = regexp.MustCompile(`^\s*//\s*(.+)`)
7878
fieldPattern = regexp.MustCompile(`^\s*(?:\w+)\s+(\w+)\s+=\s+\d+`)
7979
wrapperFieldPattern = regexp.MustCompile(`^\s*google\.protobuf\.(\w+)\s+(\w+)\s+=\s+\d+`)

0 commit comments

Comments
 (0)