Problem/Motivation

When importing site config on a freshly-installed site, I get this warning:

[warning] Schema errors for core.entity_view_display.media.image.default with the following errors: core.entity_view_display.media.image.default:content.field_media_image.settings.image_style 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 the documentation.

I cannot find a schema for this.

Proposed resolution

Add the schema.

Remaining tasks

Implement.

User interface changes

None.

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

Issue fork drupal-3581500

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

liam morland created an issue. See original summary.

akash_deep’s picture

I'd like to work on this issue. MR coming shortly

cilefen changed the visibility of the branch 3581500-content.fieldmediaimage.settings.imagestyle-missing-schema to hidden.

cilefen changed the visibility of the branch 3581500-content.fieldmediaimage.settings.imagestyle-missing-schema to active.

cilefen’s picture

Status: Active » Needs review
liam morland’s picture

Status: Needs review » Needs work

Thanks for the patch. I tried the patch in the merge request and it did not fix the problem for me.

akash_deep’s picture

Status: Needs work » Active

looking into this

liam morland’s picture

Status: Active » Needs work

Once an issue has a patch, it should stay on "Needs work" while work continues.

akash_deep’s picture

hi @liam morland, thanks for testing. i dug into this more and the schema chain actually looks correct, field_formatter.entity_view_display resolves settings through field.formatter.settings.[%parent.type], which for type: image points to field.formatter.settings.image in image.schema.yml, and that already defines image_style. so my MR was probably changing something that didnt need changing. could you share your exact drupal version and the full config export of core.entity_view_display.media.image.default from your site? that would help figure out whats actually going wrong during config import