Documentation
¶
Index ¶
- func Generate(service *compiler.CompiledService) (*openapi3.T, error)
- func GenerateJSON(service *compiler.CompiledService, pretty bool) ([]byte, error)
- func GenerateYAML(service *compiler.CompiledService) ([]byte, error)
- func RenderHTML(ui string, data TemplateData, rawTemplate, templateFile, manifestDir string) ([]byte, error)
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(service *compiler.CompiledService) (*openapi3.T, error)
Generate builds a validated OpenAPI 3.1.0 document from a CompiledService.
func GenerateJSON ¶
func GenerateJSON(service *compiler.CompiledService, pretty bool) ([]byte, error)
GenerateJSON serializes the OpenAPI 3.1 specification to formatted JSON.
func GenerateYAML ¶
func GenerateYAML(service *compiler.CompiledService) ([]byte, error)
GenerateYAML converts the canonical JSON representation into YAML to preserve custom kin-openapi tags.
func RenderHTML ¶
func RenderHTML(ui string, data TemplateData, rawTemplate, templateFile, manifestDir string) ([]byte, error)
RenderHTML generates the HTML page for the selected interactive documentation renderer.
Types ¶
Click to show internal directories.
Click to hide internal directories.