Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(svc *service.Definition) (*openapi3.T, error)
Generate builds a validated OpenAPI 3.1.0 document from a Service Definition.
func GenerateJSON ¶
func GenerateJSON(svc *service.Definition, pretty bool) ([]byte, error)
GenerateJSON serializes the OpenAPI 3.1 specification to JSON.
func GenerateYAML ¶
func GenerateYAML(svc *service.Definition) ([]byte, error)
GenerateYAML converts the specification into clean YAML.
func RenderHTML ¶
func RenderHTML(renderer, customTemplate string, data TemplateData) ([]byte, error)
RenderHTML generates the HTML page for a documentation UI renderer or custom template.
Types ¶
Click to show internal directories.
Click to hide internal directories.