reports

package
v0.21.6 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 2 Imported by: 5 modules, 10 packages

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

This section is empty.

Types

type Changed

type Changed struct {
	Total    int `json:"totalChanges"`
	Breaking int `json:"breakingChanges"`
}

Changed provides a simple wrapper for changed counts

type HasChanges

type HasChanges interface {

	// TotalChanges represents number of all changes found
	TotalChanges() int

	// TotalBreakingChanges represents the number of contract breaking changes only.
	TotalBreakingChanges() int
}

HasChanges represents a change model that provides a total change count and a breaking change count.

type OverallReport

type OverallReport struct {
	ChangeReport map[string]*Changed `json:"overallSummaryReport"`
}

OverallReport provides a Document level overview of all changes to an OpenAPI doc.

func CreateOverallReport

func CreateOverallReport(changes *model.DocumentChanges) *OverallReport

CreateOverallReport will create a high level report for all top level changes (but with deep counts)

Jump to

Keyboard shortcuts

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