I installed the module manually and added the `Smart Range Field` field in my dev environment and it worked fine as expected then i tried to export the config from `admin/config/development/configuration/single/export` the files and its storage ex: (field.field.node.event.field_date.yml, field.storage.node.field_date) and added it as inside `test_module`module install folder and run it as part of unit testing ex : php ./core/scripts/run-tests.sh --verbose --suppress-deprecations --color --url 'http://local.com' --php "$(which php)" --class 'Drupal\Tests\test_module\Functional\Sampletest' it comes up with couple of schema errors

    Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for
     Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for
    core.entity_view_display.node.event.tile_large with the following errors:
    core.entity_view_display.node.event.tile_large:content.field_event_date.settings.add_classes
    missing schema

Seems like we need to add the below in schema

    add_classes:
      type: integer
      label: 'Add Class'
      translation context: 'Add classed spans around the time and date values.'

in `smart_date.schema.yml` under `field.formatter.settings.smartdate_default:`

CommentFileSizeAuthor
#2 3195495-2.patch654 bytesmohit.bansal623

Comments

santhosh.fernando created an issue. See original summary.

mohit.bansal623’s picture

Status: Active » Needs review
StatusFileSize
new654 bytes

Schema has been added.

  • mohit.bansal623 authored 7b4dc63 on 3.1.x
    Issue #3195495 by mohit.bansal623, mandclu: Schema error `add_classes`...
mandclu’s picture

Status: Needs review » Fixed

Thanks for identifying this, and for providing a fix. Made a small text change and merged in.

santhosh.fernando’s picture

@mandclu, @mohit.bansal623 thanks for taking care of this.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.