fikaproductions / fika-gatsby-source-cockpit

This is a Gatsby version 2.\*.\* source plugin that feeds the GraphQL tree with Cockpit Headless CMS collections and singletons data. Actually, it supports querying raw texts (and any trivial field types), Markdown, images, galleries, assets, sets, repeaters, layout(-grid)s (currently only without nested images/assets), objects, linked collections and internationalization.
GNU General Public License v3.0
23 stars 22 forks source link

Add simple config validation #53

Closed flxbe closed 2 years ago

flxbe commented 4 years ago

Hi there!

I added some basic config validation and a (hopefully) useful error message. I also added some basic tests. I tried not to introduce any breaking API changes and stay consistent with the current behavior by only throwing errors for configs which do not work anyway.

I also added a hint in the readme for the locales config value, since I had a problem with duplicate collection items.

muhzulzidan commented 4 years ago

I think they never open their GitHub...