def test_validation_does_not_affect_existing_operations(editor: ArtifactEditorToolSpec):
    """Test that validation doesn't break existing valid operations."""
    editor.create_artifact(name="John", age=30, email="john@example.com")

    # All these operations should still work
    patch = JsonPatch(
        operations=[
            PatchOperation(op="replace", path="/name", value="Jane"),
            PatchOperation(op="replace", path="/age", value=25),
            PatchOperation(op="remove", path="/email"),
        ]
    )

    result = editor.apply_patch(patch)
    assert result["name"] == "Jane"
    assert result["age"] == 25
    assert result["email"] is None
Test that validation doesn't break existing valid operations.
llama-index-integrations/tools/llama-index-tools-artifact-editor/tests/test_artifact_editor.py