Version: latest
agrag.candidates.patch.schema_with_patch
schema_with_patch(schema:GraphSchema, patch:SchemaPatch, *, version:str | None = None) -> GraphSchema
Validate the schema produced by an additive candidate patch.
Parameters:
- schema (
GraphSchema) – Current schema the patch was planned against. - patch (
SchemaPatch) – Entity, relation, and property additions. - version (
str | None) – New version. None increments a numeric version.
Raises:
ValueError– The patch has a different base or needs an explicit version.