oas

package
v1.1.51 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseOAS2

func ParseOAS2(spec []byte) (*openapi2.T, error)

ParseOAS2 converts a JSON spec into an OpenAPI2 object.

func ParseOAS3

func ParseOAS3(spec []byte) (*openapi3.T, error)

ParseOAS3 converts a JSON or YAML spec into an OpenAPI3 object.

func SetOAS2HostDetails

func SetOAS2HostDetails(spec *openapi2.T, endpointURL string) error

SetOAS2HostDetails Updates the Host, BasePath, and Schemes fields on an OpenAPI2 object.

func SetOAS3Servers

func SetOAS3Servers(hosts []string, spec *openapi3.T)

SetOAS3Servers replaces the servers array on the OpenAPI3 object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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