openapi

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenAPIv2ToNDCSchema

func OpenAPIv2ToNDCSchema(input []byte, options *ConvertOptions) (*rest.NDCRestSchema, []error)

OpenAPIv2ToNDCSchema converts OpenAPI v2 JSON bytes to NDC REST schema

func OpenAPIv3ToNDCSchema

func OpenAPIv3ToNDCSchema(input []byte, options *ConvertOptions) (*rest.NDCRestSchema, []error)

OpenAPIv3ToNDCSchema converts OpenAPI v3 JSON bytes to NDC REST schema

Types

type ConvertOptions

type ConvertOptions struct {
	MethodAlias map[string]string
	TrimPrefix  string
	EnvPrefix   string
	Logger      *slog.Logger
}

ConvertOptions represent the common convert options for both OpenAPI v2 and v3

Jump to

Keyboard shortcuts

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