- Issue created by @smustgrave
I'm working to validate the config for one of my modules. However when I add
constraints:
FullyValidatable: ~
It says there are 4 errors but looking into the list I see now
Will attach the schema and output from config inspector.
Raw data
Configuration data
array (
'_core' =>
array (
'default_config_hash' => '62GMsnqB8RjxdgNyxCGrnNjjxDft8qnQQIWXU9YbUbw',
),
'untrusted_roles' =>
array (
0 => 'anonymous',
1 => 'authenticated',
),
'log' => false,
'skipped' =>
array (
'admin_permissions' =>
array (
'skipped' => true,
'skipped_by' => '1',
'skipped_on' => 1729554639,
),
'upload_extensions' =>
array (
'skipped' => true,
'skipped_by' => '1',
'skipped_on' => 1729554639,
),
),
'views_access' =>
array (
'ignore_default' => false,
),
'upload_extensions' =>
array (
'hush_upload_extensions' =>
array (
),
),
'fields' =>
array (
'known_risky_fields' =>
array (
),
),
'file_permissions' =>
array (
'hushed_files' =>
array (
),
),
'headers' =>
array (
'headers_to_check' =>
array (
),
),
)
Configuration schema
array (
'label' => 'Security review settings',
'class' => 'Drupal\\Core\\Config\\Schema\\Mapping',
'definition_class' => '\\Drupal\\Core\\TypedData\\MapDataDefinition',
'mapping' =>
array (
'uuid' =>
array (
'type' => 'uuid',
'label' => 'UUID',
),
'langcode' =>
array (
'type' => 'langcode',
),
'status' =>
array (
'type' => 'boolean',
'label' => 'Status',
),
'dependencies' =>
array (
'type' => 'config_dependencies',
'label' => 'Dependencies',
),
'third_party_settings' =>
array (
'requiredKey' => false,
'type' => 'sequence',
'label' => 'Third party settings',
'sequence' =>
array (
'type' => '[%parent.%parent.%type].third_party.[%key]',
),
),
'_core' =>
array (
'requiredKey' => false,
'type' => '_core_config_info',
),
'untrusted_roles' =>
array (
'type' => 'sequence',
'label' => 'Untrusted roles',
'sequence' =>
array (
'type' => 'string',
'label' => 'Role ID',
'constraints' =>
array (
'ConfigExists' =>
array (
'prefix' => 'user.role.',
),
),
),
),
'log' =>
array (
'type' => 'boolean',
'label' => 'Logging enabled',
),
'skipped' =>
array (
'type' => 'sequence',
'label' => 'Skipped checks',
'sequence' =>
array (
'type' => 'mapping',
'label' => 'Skipped check name',
'mapping' =>
array (
'skipped' =>
array (
'type' => 'boolean',
'label' => 'Is skipped',
),
'skipped_by' =>
array (
'type' => 'string',
'label' => 'Skipped by',
'constraints' =>
array (
'NotNull' =>
array (
),
),
),
'skipped_on' =>
array (
'type' => 'timestamp',
'label' => 'Skipped on',
),
),
),
),
'views_access' =>
array (
'type' => 'mapping',
'label' => 'Views Access Check',
'mapping' =>
array (
'ignore_default' =>
array (
'type' => 'boolean',
'label' => 'Ignore default views',
),
),
),
'upload_extensions' =>
array (
'type' => 'mapping',
'label' => 'Upload Extensions check',
'mapping' =>
array (
'hush_upload_extensions' =>
array (
'type' => 'sequence',
'label' => 'Hushed uploaded extensions',
'sequence' =>
array (
'type' => 'string',
'label' => 'Upload extensions to ignore',
'constraints' =>
array (
'NotBlank' =>
array (
'allowNull' => true,
),
),
),
),
),
),
'fields' =>
array (
'type' => 'mapping',
'label' => 'Fields check',
'mapping' =>
array (
'known_risky_fields' =>
array (
'type' => 'sequence',
'label' => 'Hushed fields',
'sequence' =>
array (
'type' => 'string',
'label' => 'Field hash to ignore',
'constraints' =>
array (
'NotBlank' =>
array (
'allowNull' => true,
),
),
),
),
),
),
'file_permissions' =>
array (
'type' => 'mapping',
'label' => 'File permissions check',
'mapping' =>
array (
'hushed_files' =>
array (
'type' => 'sequence',
'label' => 'Hushed files',
'sequence' =>
array (
'type' => 'string',
'label' => 'Directory to ignore',
'constraints' =>
array (
'NotBlank' =>
array (
'allowNull' => true,
),
),
),
),
),
),
'headers' =>
array (
'type' => 'mapping',
'label' => 'Headers check',
'mapping' =>
array (
'headers_to_check' =>
array (
'type' => 'sequence',
'label' => 'Headers to check',
'sequence' =>
array (
'type' => 'string',
'label' => 'Header name',
'constraints' =>
array (
'NotBlank' =>
array (
'allowNull' => true,
),
),
),
),
),
),
),
'constraints' =>
array (
'ValidKeys' => '<infer>',
'FullyValidatable' => NULL,
),
'unwrap_for_canonical_representation' => true,
'type' => 'security_review.settings',
)
Configuration validation
true
Active
2.1
Code