Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct {
Flags ConverterFlags
// contains filtered or unexported fields
}
Converter is everything you need to convert protos to JSONSchemas:
func (*Converter) ConvertFrom ¶
ConvertFrom tells the convert to work on the given input:
type ConverterFlags ¶
type ConverterFlags struct {
AllFieldsRequired bool
AllowNullValues bool
DisallowAdditionalProperties bool
DisallowBigIntsAsStrings bool
EnforceOneOf bool
EnumsAsConstants bool
EnumsAsStringsOnly bool
EnumsTrimPrefix bool
KeepNewLinesInDescription bool
PrefixSchemaFilesWithPackage bool
UseJSONFieldnamesOnly bool
UseProtoAndJSONFieldNames bool
TypeNamesWithNoPackage bool
NoBaseJsonFile bool
}
ConverterFlags control the behaviour of the converter:
type ProtoPackage ¶
type ProtoPackage struct {
// contains filtered or unexported fields
}
ProtoPackage describes a package of Protobuf, which is an container of message types.
Click to show internal directories.
Click to hide internal directories.