Skip to content

Commit

Permalink
Standard protobuf json type mapping for int64 is string
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Wang committed Feb 7, 2024
1 parent c748e10 commit 02cf9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapiGenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 02cf9c7

Please sign in to comment.