Documentation
¶
Index ¶
- type CompareOption
- func AllowExtraFields() CompareOption
- func AllowExtraTypes() CompareOption
- func IgnoreDescriptions() CompareOption
- func IgnoreDirectiveArgs(directives ...string) CompareOption
- func IgnoreDirectives(names ...string) CompareOption
- func KnownIssues(paths ...string) CompareOption
- func SkipSystemTypes() CompareOption
- func SkipTypes(names ...string) CompareOption
- type Diff
- type DiffKind
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareOption ¶
type CompareOption func(*compareConfig)
CompareOption configures comparison behavior.
func AllowExtraFields ¶
func AllowExtraFields() CompareOption
AllowExtraFields treats fields present in new but missing in old as non-diffs.
func AllowExtraTypes ¶
func AllowExtraTypes() CompareOption
AllowExtraTypes treats types present in new but missing in old as non-diffs.
func IgnoreDescriptions ¶
func IgnoreDescriptions() CompareOption
IgnoreDescriptions ignores description differences on types and fields.
func IgnoreDirectiveArgs ¶
func IgnoreDirectiveArgs(directives ...string) CompareOption
IgnoreDirectiveArgs ignores argument differences on specified directives.
func IgnoreDirectives ¶
func IgnoreDirectives(names ...string) CompareOption
IgnoreDirectives skips named directives entirely during comparison. Both missing and extra occurrences of these directives are ignored.
func KnownIssues ¶
func KnownIssues(paths ...string) CompareOption
KnownIssues marks diffs at specified paths as known issues, moving them to Result.KnownIssues instead of Result.Diffs.
func SkipSystemTypes ¶
func SkipSystemTypes() CompareOption
SkipSystemTypes excludes types starting with "__" from comparison.
func SkipTypes ¶
func SkipTypes(names ...string) CompareOption
SkipTypes excludes specific types by name from comparison.
type Diff ¶
type Diff struct {
Path string // dot-separated path, e.g. "types.User.fields.name"
Kind DiffKind // MISSING, EXTRA, or CHANGED
Message string // human-readable description
}
Diff represents a single structural difference between two schemas.
type Result ¶
Result holds comparison output: actual diffs and known issues.