Documentation
¶
Overview ¶
Package markdown converts OpenAPI / Swagger specifications into Markdown.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InputFormat ¶
type InputFormat string
InputFormat controls how the raw spec bytes are interpreted. The zero value (FormatAuto) auto-detects JSON vs YAML.
const ( // FormatAuto lets the converter detect JSON vs YAML automatically. FormatAuto InputFormat = "auto" // FormatJSON forces the input to be treated as JSON. FormatJSON InputFormat = "json" // FormatYAML forces the input to be treated as YAML. FormatYAML InputFormat = "yaml" )
type Options ¶
type Options struct {
Format InputFormat
SkipValidation bool
}
Options tune how ToMarkdown parses and validates the input spec.
Click to show internal directories.
Click to hide internal directories.