Schema diff¶
didactic.api.diff ¶
Compute a structural diff between two Models.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
old
|
type[Model]
|
The earlier Model. |
required |
new
|
type[Model]
|
The later Model. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
The diff record from |
Examples:
didactic.api.classify_change ¶
Diff and classify a Model change as compatible, breaking, or migrating.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
old
|
type[Model]
|
The earlier Model. |
required |
new
|
type[Model]
|
The later Model. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
The compatibility report from
|
Examples: