oas

package
v1.1.101 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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