From 02cf9c72f4add0beffd482abe06b04d64eb98a23 Mon Sep 17 00:00:00 2001 From: Thomas Wang Date: Thu, 8 Feb 2024 05:44:28 +0800 Subject: [PATCH] Standard protobuf json type mapping for int64 is string --- openapiGenerator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapiGenerator.go b/openapiGenerator.go index 89033a5..ebd83f5 100644 --- a/openapiGenerator.go +++ b/openapiGenerator.go @@ -372,7 +372,7 @@ func (g *openapiGenerator) generateSoloMessageSchema(message *protomodel.Message } func (g *openapiGenerator) generateSoloInt64Schema() *openapi3.Schema { - schema := openapi3.NewInt64Schema() + schema := openapi3.NewStringSchema() schema.ExtensionProps = openapi3.ExtensionProps{ Extensions: map[string]interface{}{ "x-kubernetes-int-or-string": true,