Closed (fixed)
Project:
APITools
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2024 at 19:15 UTC
Updated:
5 Feb 2025 at 21:54 UTC
Jump to comment: Most recent
We are running ZoomAPI module, which leverages APITools. Running database updates on D10.3.2 throws the an error.
> [notice] Update started: system_post_update_add_langcode_to_all_translatable_config
> [error] AssertionError: Failed on config name 'apitools.client.zoomapi' in assert() (line 264 of /var/www/html/web/core/modules/system/system.post_update.php) #0 /var/www/html/web/core/modules/system/system.post_update.php(264): assert()
The assertion is
// Simple config is always a mapping.
assert($typed_config instanceof Mapping, "Failed on config name '$name'");
This seems to be because the APITools schema specifies type sequence when it should be type mapping. Updating the schema fixes the issue for us.
Update to Core 10.3.2
Update the config schema type
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mrweiner commentedComment #4
mrweiner commentedComment #5
asherry commentedit's been a long time since I messed with the schema part, is this going to have backwards compatibility issues with an earlier version of Drupal 10?
Comment #6
mrweiner commentedI don't think so, but can't say for sure. Probably want to test.
Comment #7
catchThis looks right and allows for an update to 10.3
Drupal 10.2 is nearly out of support so would be good if this could be committed.
Comment #9
asherry commented