openapidb

package
v2.3.0-beta33 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package openapidb provides a openAPI database implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAPIYaml

type OpenAPIYaml struct {
	OpenAPIPath string
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger, openAPIPath string) *OpenAPIYaml

func (*OpenAPIYaml) ChangePath

func (ts *OpenAPIYaml) ChangePath(path string)

func (*OpenAPIYaml) GetMocksSchemas

func (ts *OpenAPIYaml) GetMocksSchemas(ctx context.Context, testSetID string, mockPath string, mockFileName string) ([]*models.OpenAPI, error)

func (*OpenAPIYaml) GetTestCasesSchema

func (ts *OpenAPIYaml) GetTestCasesSchema(ctx context.Context, testSetID string, testPath string) ([]*models.OpenAPI, error)

func (*OpenAPIYaml) WriteSchema

func (ts *OpenAPIYaml) WriteSchema(ctx context.Context, logger *zap.Logger, outputPath, name string, openapi models.OpenAPI, isAppend bool) error

Jump to

Keyboard shortcuts

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