openapi

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocateSwaggerFile

func LocateSwaggerFile() string

LocateSwaggerFile tries to find the Swagger file in the current directory.

func ParseSwaggerFile

func ParseSwaggerFile(ctx context.Context, filePath string) (*openapi3.T, error)

ParseSwaggerFile parses a Swagger file (YAML/JSON) using kin-openapi, with support for context cancellation.

func ViewEndpointDetails

func ViewEndpointDetails(swagger *openapi3.T, endpoint string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL