StaticJsCMS / static-cms

A Git-based CMS for Static Site Generators

Home Page:https://staticjscms.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: '.properties.search.type' must be string

almereyda opened this issue · comments

I have set search: true in config.yml, as per the documentation entry, and the browser console throws:

Error: '.properties.search.type' must be string

This is because the schema says it is a string.

search: { type: 'string' },

I like to copy default values in configuration files, so I know I have the choice to change them. Maybe nobody ever happened to check?

The repository in question is https://github.com/ecobytes/the.compost.place/tree/main/static/admin

Workaround appears to just leave the field out for now.

Are there tests for this?

There are no tests for the config schema, but that probably should be.

This is fixed in v3.4.6.

Thank you.