Skip to content

Commit 9108558

Browse files
authored
Merge pull request #264 from tmc/regenerate_examples
Regenerate examples
2 parents ecf1225 + c56093e commit 9108558

File tree

8 files changed

+259
-6
lines changed

8 files changed

+259
-6
lines changed

examples/examplepb/a_bit_of_everything.pb.go

Lines changed: 147 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/examplepb/echo_service.pb.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/examplepb/flow_combination.pb.go

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/sub2/message.pb.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protoc-gen-swagger/genswagger/template.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func renderServices(services []*descriptor.Service, paths swaggerPathsObject, re
386386
},
387387
}
388388
} else {
389-
lastField := b.Body.FieldPath[len(b.Body.FieldPath) - 1]
389+
lastField := b.Body.FieldPath[len(b.Body.FieldPath)-1]
390390
schema = schemaOfField(lastField.Target, reg)
391391
}
392392

@@ -399,7 +399,7 @@ func renderServices(services []*descriptor.Service, paths swaggerPathsObject, re
399399
Description: desc,
400400
In: "body",
401401
Required: true,
402-
Schema: &schema,
402+
Schema: &schema,
403403
})
404404
}
405405

@@ -565,7 +565,7 @@ func updateSwaggerDataFromComments(swaggerObject interface{}, comment string) er
565565
return nil
566566
}
567567

568-
return fmt.Errorf("No description nor summary property.")
568+
return fmt.Errorf("no description nor summary property")
569569
}
570570

571571
func protoComments(reg *descriptor.Registry, file *descriptor.File, outers []string, typeName string, typeIndex int32, fieldPaths ...int32) string {
@@ -693,15 +693,15 @@ func isProtoPathMatches(paths []int32, outerPaths []int32, typeName string, type
693693
func protoPathIndex(descriptorType reflect.Type, what string) int32 {
694694
field, ok := descriptorType.Elem().FieldByName(what)
695695
if !ok {
696-
panic(fmt.Errorf("Could not find protobuf descriptor type id for %s.", what))
696+
panic(fmt.Errorf("could not find protobuf descriptor type id for %s", what))
697697
}
698698
pbtag := field.Tag.Get("protobuf")
699699
if pbtag == "" {
700-
panic(fmt.Errorf("No Go tag 'protobuf' on protobuf descriptor for %s.", what))
700+
panic(fmt.Errorf("no Go tag 'protobuf' on protobuf descriptor for %s", what))
701701
}
702702
path, err := strconv.Atoi(strings.Split(pbtag, ",")[1])
703703
if err != nil {
704-
panic(fmt.Errorf("Protobuf descriptor id for %s cannot be converted to a number: %s", what, err.Error()))
704+
panic(fmt.Errorf("protobuf descriptor id for %s cannot be converted to a number: %s", what, err.Error()))
705705
}
706706

707707
return int32(path)

runtime/internal/stream_chunk.pb.go

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third_party/googleapis/google/api/annotations.pb.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third_party/googleapis/google/api/http.pb.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)