Problem/Motivation

When try to add add Json Api file field services at this url /admin/config/services/filefield_sources_jsonapi/add
I get this error :
Drupal\Core\Config\Schema\SchemaIncompleteException: Entity type 'Drupal\filefield_sources_jsonapi\Entity\FileFieldSourcesJSONAPI' is missing 'config_export' definition in its annotation in Drupal\Core\Config\Entity\ConfigEntityBase->toArray() (line 252 of /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).

Steps to reproduce

go to /admin/config/services/filefield_sources_jsonapi/add
put this in the params fields[media-image]|name.field.image
fill in all the other fields and click Save

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

dianacastillo created an issue. See original summary.

cilefen’s picture

Project: Drupal core » FileField Sources JSON API
Version: 9.3.x-dev » 8.x-1.x-dev
Component: jsonapi.module » Code

That is a contributed module, not Drupal Core.

dianacastillo’s picture

Version: 8.x-1.x-dev » 8.x-1.0-beta9

adding this in the src/entity/FileFieldSourcesJSONAPI.php
annotation fixes this . will make a patch

*. config_export = {
 *     "id",
 *     "label",
 *     "basicAuthentication",
 *     "apiUrl",
 *     "params",
 *     "urlAttributePath",
 *     "thumbnailUrlAttributePath",
 *     "titleAttributePath",
 *     "altAttributePath",
 *     "sortOptionList",
 *     "searchFilter",
 *     "itemsPerPage",
 *     "uuid"
 *    },  
dianacastillo’s picture

StatusFileSize
new633 bytes

incorrect comment

dianacastillo’s picture

Status: Active » Needs review
dianacastillo’s picture

StatusFileSize
new762 bytes

correct patch with the correct fields attached.

dianacastillo’s picture

Version: 8.x-1.0-beta9 » 8.x-1.x-dev
StatusFileSize
new860 bytes

the previous patch didnt apply correctly, adding another one

  • dianacastillo authored 728e464 on 8.x-1.x
    Issue #3260418 by dianacastillo: Missing 'config_export' definition in...
szato’s picture

Status: Needs review » Fixed

Thank you for the patch.

Status: Fixed » Closed (fixed)

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