Fix schema errors and make the schema validatable

Created on 24 February 2025, about 1 month ago

Problem/Motivation

if you check the crowdsec settings with https://www.drupal.org/project/config_inspector in the command line it lists three schema errors:

$> ddev drush config:inspect --filter-keys=crowdsec.settings --detail 
➜  🤖 Analyzing…

 Legend for Data: 
  ✅❓  → Correct primitive type, detailed validation impossible.
  ✅✅  → Correct primitive type, passed all validation constraints.
 --------------          ------------------------------------------ ------------- ------ 
  Key                    Status                                     Validatable   Data  
 --------------          ------------------------------------------ ------------- ------ 
  crowdsec.set   missing schema                                                 
  tings:log_le                                                                  
  vel                                                                           
  crowdsec.set   variable type is integer but applied                           
  tings:api_ti       schema class is                                                
  meout               Drupal\Core\TypedData\Plugin\
                             DataType\StringData                                                       
  crowdsec.set   variable type is integer but applied                           
  tings:whispe   schema class is                                                
  r.enable            Drupal\Core\TypedData\Plugin\
                            DataType\BooleanData                                                      
 -------------- ------------------------------------------ ------------- ------ 
Failed to run drush config:inspect --filter-keys=crowdsec.settings --detail: exit status 1

Aside the errors the schema is at 17% validatability.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.1

Component

Code

Created by

🇩🇪Germany rkoller Nürnberg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @rkoller
  • 🇩🇪Germany rkoller Nürnberg, Germany

    will try to provide an initial MR

  • Merge request !9Resolve #3508743 "Fix schema errors" → (Open) created by rkoller
  • Pipeline finished with Success
    about 1 month ago
    Total: 150s
    #432986
  • 🇩🇪Germany rkoller Nürnberg, Germany

    not sure if those changes are reasonable and enough in scope and or valid but at least the errors are fixed and the config inspector lists the schema as 100% validatable now.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    This is great, thank you so much @rkoller for contributing this. I left a couple of comments, not sure how one of them can and should be addressed, though.

  • Pipeline finished with Success
    about 1 month ago
    Total: 163s
    #433462
  • Pipeline finished with Success
    about 1 month ago
    Total: 150s
    #433493
Production build 0.71.5 2024