Versions in this module Expand all Collapse all v2 v2.0.7 May 15, 2024 v2.0.6 May 14, 2024 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)