diff --git a/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php b/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php index 3b3b16d..536a4cb 100644 --- a/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php +++ b/core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php @@ -82,7 +82,7 @@ protected function checkValue($key, $value) { if ($element instanceof Undefined) { // @todo Temporary workaround for https://www.drupal.org/node/2224761. $key_parts = explode('.', $key); - if (array_pop($key_parts) == 'translation_sync') { + if (array_pop($key_parts) == 'translation_sync' && strpos($this->configName, 'field.') === 0) { return array(); } return array($error_key => 'Missing schema.'); diff --git a/core/modules/config/src/Tests/ConfigImportAllTest.php b/core/modules/config/src/Tests/ConfigImportAllTest.php index 43e3efc..07c9567 100644 --- a/core/modules/config/src/Tests/ConfigImportAllTest.php +++ b/core/modules/config/src/Tests/ConfigImportAllTest.php @@ -126,6 +126,9 @@ public function testInstallUninstall() { ); $this->assertIdentical($storage_comparer->createChangelist()->getChangelist(), $storage_comparer->getEmptyChangelist()); + // Now we have all configuration imported, test all of them for schema + // conformance. Ensures all imported default configuration is valid when + // all modules are enabled. $names = $this->container->get('config.storage')->listAll(); $factory = $this->container->get('config.factory'); /** @var \Drupal\Core\Config\TypedConfigManagerInterface $typed_config */ diff --git a/core/modules/migrate/config/schema/migrate.schema.yml b/core/modules/migrate/config/schema/migrate.schema.yml index 8f4c2eb..cdca049 100644 --- a/core/modules/migrate/config/schema/migrate.schema.yml +++ b/core/modules/migrate/config/schema/migrate.schema.yml @@ -38,27 +38,3 @@ migrate.migration.*: sequence: - type: string label: 'Dependency' - row: - type: ignore - label: 'Row' - idMap: - type: ignore - label: 'ID Map' - sourceIds: - type: ignore - label: 'Source IDs' - destinationIds: - type: ignore - label: 'Destination IDs' - highwaterProperty: - type: ignore - label: 'Property' - systemOfRecord: - type: ignore - label: 'System of record' - sourceRowStatus: - type: ignore - label: 'Sourc row status' - trackLastImported: - type: ignore - label: 'Tracked last import' diff --git a/core/modules/path/config/schema/path.schema.yml b/core/modules/path/config/schema/path.schema.yml index ebed69c..f595e4b 100644 --- a/core/modules/path/config/schema/path.schema.yml +++ b/core/modules/path/config/schema/path.schema.yml @@ -3,3 +3,6 @@ entity_form_display.field.path: type: entity_field_form_display_base label: 'Link format settings' + mapping: + settings: + type: sequence