spec

package
v0.0.0-...-83cdd8b Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BumpVersion

func BumpVersion(format string, file1 string, file2 string, currentVersion string) (string, error)

Types

type Diff

type Diff struct {
	OpenAPI []OpenAPIDiff
}

func DiffSpec

func DiffSpec(format string, file1 string, file2 string) (Diff, error)

type OpenAPIDiff

type OpenAPIDiff struct {
	ID          string `json:"id"`
	Text        string `json:"text"`
	Level       int    `json:"level"`
	Operation   string `json:"operation"`
	OperationID string `json:"operationId"`
	Path        string `json:"path"`
	Source      string `json:"source"`
}

func DiffOpenAPI

func DiffOpenAPI(file1 string, file2 string) ([]OpenAPIDiff, error)

DiffOpenAPI compares two OAS files and returns the differences, calls the oasdiff cli tool to retrieve the json

Jump to

Keyboard shortcuts

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