diff

package
v1.4.1-0...-415649e Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(ref_obj, diff_obj *spec.CollectItem) (*spec.CollectItem, error)

Diff 比较两个接口的差异 source,target 是完整的spec对象 因为需要解析schema等依赖 spec.Collections 里面只能有一个接口 返回对比后的两个接口 其中只有最新的那个 也就是target里边会通过x-apicat-diff标记是否有差异 差异并不包含排序

func DiffSchema

func DiffSchema(a, b *spec.Schema) (*spec.Schema, error)

func IsChangedBasic

func IsChangedBasic(ref_obj, diff_obj *spec.CollectItem) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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