Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is openapi v2 generator
func (*Generator) Gen ¶
func (g *Generator) Gen(req *pluginpb.CodeGeneratorRequest, onlyRPC bool) (*pluginpb.CodeGeneratorResponse, error)
Gen generates openapi v2 json content
type Option ¶
type Option func(gen *Generator)
func DisableDefaultErrors ¶
DisableDefaultErrors. if set, disables generation of default errors. This is useful if you have defined custom error handling
func EnumsAsInts ¶
EnumsAsInts. whether to render enum values as integers, as opposed to string values
func MergeFileName ¶
MergeFileName. target OpenAPI file name prefix after merge
func RecursiveDepth ¶
RecursiveDepth. maximum recursion count allowed for a field type
func UseJSONNamesForFields ¶
UseJSONNamesForFields. if disabled, the original proto name will be used for generating OpenAPI definitions
Click to show internal directories.
Click to hide internal directories.