object SchemaDiff extends Serializable
- Alphabetic
- By Inheritance
- SchemaDiff
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class Modified(pointer: SchemaPointer, from: Schema, to: Schema) extends Product with Serializable
Value Members
-
def
build(source: Segment): SchemaDiff
Build
SchemaDiff
from list of schemas -
def
diff(source: SubSchemas, target: SubSchemas): SchemaDiff
Generate diff from source list of properties to target though sequence of intermediate
Generate diff from source list of properties to target though sequence of intermediate
- source
source list of JSON Schema properties
- target
non-empty list of successive JSON Schema properties including target
- returns
diff between two Schmea
- val empty: SchemaDiff
-
def
getAddedKeys(source: SubSchemas, successive: SubSchemas): Set[(SchemaPointer, Schema)]
Get list of new properties in order they appear in subsequent Schemas
Get list of new properties in order they appear in subsequent Schemas
- source
original Schema
- successive
all subsequent Schemas
- returns
possibly empty list of keys in correct order
-
def
getModifiedProperties(source: SubSchemas, target: SubSchemas): Set[Modified]
Get list of JSON Schema properties modified between two versions
Get list of JSON Schema properties modified between two versions
- source
original list of JSON Schema properties
- target
final list of JSON Schema properties
- returns
set of properties changed in target Schema
- def getRemovedProperties(source: SubSchemas, target: SubSchemas): SubSchemas