Versions in this module Expand all Collapse all v2 v2.10.3 May 4, 2022 v2.10.2 May 4, 2022 Changes in this version + func AddErrorDefs(reg *descriptor.Registry) error + func LookupNamingStrategy(strategyName string) func([]string) map[string]string + func New(reg *descriptor.Registry, format Format) gen.Generator + type ContentEncoder interface + Encode func(v interface{}) (err error) + type Format string + const FormatJSON + const FormatYAML + func (f Format) NewEncoder(w io.Writer) (ContentEncoder, error) + func (f Format) Validate() error + type GeneratorOptions struct + RecursiveDepth int + Registry *descriptor.Registry + type RawExample json.RawMessage + func (e RawExample) MarshalYAML() (interface{}, error) + func (m *RawExample) UnmarshalJSON(data []byte) error + func (m RawExample) MarshalJSON() ([]byte, error)