Table of Contents

Class BreakingChangeClassifier

Namespace
JD.Domain.Diff
Assembly
JD.Domain.Diff.dll

Classifies changes as breaking or non-breaking.

public sealed class BreakingChangeClassifier
Inheritance
BreakingChangeClassifier
Inherited Members

Methods

IsEntityAdditionBreaking()

Determines if adding an entity is a breaking change.

public bool IsEntityAdditionBreaking()

Returns

bool

IsEntityRemovalBreaking()

Determines if removing an entity is a breaking change.

public bool IsEntityRemovalBreaking()

Returns

bool

IsEnumRemovalBreaking()

Determines if removing an enum is a breaking change.

public bool IsEnumRemovalBreaking()

Returns

bool

IsEnumValueRemovalBreaking()

Determines if removing an enum value is a breaking change.

public bool IsEnumValueRemovalBreaking()

Returns

bool

IsIndexAdditionBreaking()

Determines if adding an index is a breaking change.

public bool IsIndexAdditionBreaking()

Returns

bool

IsIndexRemovalBreaking()

Determines if removing an index is a breaking change.

public bool IsIndexRemovalBreaking()

Returns

bool

IsKeyChangeBreaking()

Determines if changing key properties is a breaking change.

public bool IsKeyChangeBreaking()

Returns

bool

IsPropertyAdditionBreaking(bool)

Determines if adding a property is a breaking change.

public bool IsPropertyAdditionBreaking(bool isRequired)

Parameters

isRequired bool

Whether the new property is required.

Returns

bool

IsPropertyRemovalBreaking()

Determines if removing a property is a breaking change.

public bool IsPropertyRemovalBreaking()

Returns

bool

IsPropertyTypeChangeBreaking()

Determines if changing a property type is a breaking change.

public bool IsPropertyTypeChangeBreaking()

Returns

bool

IsRequiredChangeBreaking(bool, bool)

Determines if changing the required status of a property is a breaking change.

public bool IsRequiredChangeBreaking(bool wasOptional, bool isNowRequired)

Parameters

wasOptional bool

Whether the property was previously optional.

isNowRequired bool

Whether the property is now required.

Returns

bool

IsRuleChangeBreaking()

Determines if rule changes are breaking.

public bool IsRuleChangeBreaking()

Returns

bool

IsValueObjectRemovalBreaking()

Determines if removing a value object is a breaking change.

public bool IsValueObjectRemovalBreaking()

Returns

bool