ndc

package
v0.0.0-...-8ad2f13 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildNDCSchema

func BuildNDCSchema(input []byte, options ConvertOptions) (*rest.NDCHttpSchema, error)

BuildNDCSchema validates and builds the NDC schema.

func BuildTransformResponseSchema

func BuildTransformResponseSchema(
	ndcSchema *rest.NDCHttpSchema,
	logger *slog.Logger,
) (*rest.NDCHttpSchema, error)

BuildTransformResponseSchema applies and builds the new schema with response transform settings.

Types

type ConvertOptions

type ConvertOptions struct {
	Prefix string
	Logger *slog.Logger
}

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

type NDCBuilder

type NDCBuilder struct {
	*ConvertOptions
	// contains filtered or unexported fields
}

NDCBuilder the NDC schema builder to validate REST connector schema.

func NewNDCBuilder

func NewNDCBuilder(httpSchema *rest.NDCHttpSchema, options ConvertOptions) *NDCBuilder

NewNDCBuilder creates a new NDCBuilder instance.

func (*NDCBuilder) Build

func (ndc *NDCBuilder) Build() (*rest.NDCHttpSchema, error)

Build validates and build the REST connector schema.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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