Version: latest
agrag.schema.stored.schema_changes
schema_changes(stored:GraphSchema, new:GraphSchema) -> list[str]
Return one line per removal or tightening that new makes to stored.
Additions and description edits are not reported. Type, parent, property, enum, pattern, cardinality and symmetry changes that narrow what the stored schema allows are reported in stored declaration order.
Parameters:
- stored (
GraphSchema) – The schema currently stored in the graph. - new (
GraphSchema) – The schema anopencall was given.
Returns:
list[str]– One line per refused change. Empty when the change is allowed.