@@ -71,7 +71,9 @@ var specialSoloTypes = map[string]openapi3.Schema{
71
71
"google.protobuf.StringValue" : * openapi3 .NewStringSchema ().WithNullable (),
72
72
"google.protobuf.DoubleValue" : * openapi3 .NewFloat64Schema ().WithNullable (),
73
73
"google.protobuf.Int32Value" : * openapi3 .NewIntegerSchema ().WithNullable ().WithMin (math .MinInt32 ).WithMax (math .MaxInt32 ),
74
+ "google.protobuf.Int64Value" : * openapi3 .NewIntegerSchema ().WithNullable ().WithMin (math .MinInt64 ).WithMax (math .MaxInt64 ),
74
75
"google.protobuf.UInt32Value" : * openapi3 .NewIntegerSchema ().WithNullable ().WithMin (0 ).WithMax (math .MaxUint32 ),
76
+ "google.protobuf.UInt64Value" : * openapi3 .NewIntegerSchema ().WithNullable ().WithMin (0 ).WithMax (math .MaxUint64 ),
75
77
"google.protobuf.FloatValue" : * openapi3 .NewFloat64Schema ().WithNullable (),
76
78
"google.protobuf.Duration" : * openapi3 .NewStringSchema (),
77
79
"google.protobuf.Empty" : * openapi3 .NewObjectSchema ().WithMaxProperties (0 ),
@@ -132,9 +134,9 @@ func newOpenAPIGenerator(
132
134
133
135
// buildCustomSchemasByMessageName name returns a mapping of message name to a pre-defined openapi schema
134
136
// It includes:
135
- // 1. `specialSoloTypes`, a set of pre-defined schemas
137
+ // 1. `specialSoloTypes`, a set of pre-defined schemas
136
138
// 2. `messagesWithEmptySchema`, a list of messages that are injected at runtime that should contain
137
- // and empty schema which accepts and preserves all fields
139
+ // and empty schema which accepts and preserves all fields
138
140
func buildCustomSchemasByMessageName (messagesWithEmptySchema []string ) map [string ]openapi3.Schema {
139
141
schemasByMessageName := make (map [string ]openapi3.Schema )
140
142
0 commit comments