When runing a test which used the facets_rest module to export json by views, we will get an SchemaMissingException of show_facets config of FacetsSerializer views style plugin,

Adding views.style.facets_serializer schema to resolve this problem.

facets.views.styles.schema.yml

views.style.facets_serializer:
  type: views.style.serializer
  label: 'Facets serializer'
  mapping:
    show_facets:
      type:  boolean
      label: 'Show facets'

Issue fork facets-3349266

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

司南 created an issue. See original summary.

司南’s picture

Status: Needs work » Needs review
elber’s picture

Status: Needs review » Reviewed & tested by the community

Hi I revised the change, schema file is correct.

Module keeps working with this new file.
It sounds good to me.

borisson_’s picture

This looks great, I think we should commit it to be 2.x and 3.x

  • borisson_ committed 97292944 on 2.0.x
    Issue #3349266 by 司南, elber, borisson_: FacetsSerializer views style...

  • borisson_ committed 978f0c43 on 3.0.x
    Issue #3349266 by 司南, elber, borisson_: FacetsSerializer views style...
borisson_’s picture

Status: Reviewed & tested by the community » Fixed

Committed to both branches.

Status: Fixed » Closed (fixed)

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