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:`
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3195495-2.patch | 654 bytes | mohit.bansal623 |
Comments
Comment #2
mohit.bansal623 commentedSchema has been added.
Comment #4
mandclu commentedThanks for identifying this, and for providing a fix. Made a small text change and merged in.
Comment #5
santhosh.fernando commented@mandclu, @mohit.bansal623 thanks for taking care of this.