Write a schema file for AI Automators

Created on 21 July 2025, 2 days ago

Problem/Motivation

Currently we do not have a schema file at all for the AI Automators configuration entity. This was not seen in error messages due to a typo, but when the typo is fixed we also need to add a schema.

Proposed resolution

Add schema for configuration entity.

🐛 Bug report
Status

Active

Version

1.2

Component

AI Automators

Created by

🇩🇪Germany marcus_johansson

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

Merge Requests

Comments & Activities

  • Issue created by @marcus_johansson
  • Merge request !776Resolve #3537226 "Write a schema" → (Open) created by marcus_johansson
  • 🇨🇦Canada bisonbleu

    The MR patch does not apply, so I had to do it manually.

    I think we're making progress. Now when I save at admin/structure/types/manage/page/automator_chain I'm only seeing this:

    Warning message
    
        Schema errors for ai_automators.ai_automator.node.page.field_extract_general_sentiment.default with the following errors: ai_automators.ai_automator.node.page.field_extract_general_sentiment.default:disabled missing schema. These errors mean there is configuration that does not comply with its schema. This is not a fatal error, but it is recommended to fix these issues. For more information on configuration schemas, check out <a href="https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata">the documentation</a>.
        Schema errors for ai_automators.ai_automator.node.page.field_plain_text_long.default with the following errors: ai_automators.ai_automator.node.page.field_plain_text_long.default:disabled missing schema. These errors mean there is configuration that does not comply with its schema. This is not a fatal error, but it is recommended to fix these issues. For more information on configuration schemas, check out <a href="https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata">the documentation</a>.
        Schema errors for ai_automators.ai_automator.node.page.field_sentiment_score.default with the following errors: ai_automators.ai_automator.node.page.field_sentiment_score.default:disabled missing schema. These errors mean there is configuration that does not comply with its schema. This is not a fatal error, but it is recommended to fix these issues. For more information on configuration schemas, check out <a href="https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata">the documentation</a>.
        No schema for ai_automators.settings. These errors mean there is configuration that does not comply with its schema. This is not a fatal error, but it is recommended to fix these issues. For more information on configuration schemas, check out <a href="https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata">the documentation</a>.

    Also, in 'Manage form display' settings, the following fields do not display the FWA field-set:

    - Widget settings: Autocomplete // this one use to work fine I think
    - Widget settings: Datetime Timestamp
    - Widget settings: URL alias
    - Widget settings: Text area (multiple rows) // this one use to work fine
    - Widget settings: Comment

Production build 0.71.5 2024