fabrikate icon indicating copy to clipboard operation
fabrikate copied to clipboard

Enforce component model and config schema

Open timfpark opened this issue 5 years ago • 0 comments

As a developer, I want Fabrikate to tell me when I accidentally make a mistake like misspelling generator as generate in my definition by recognizing that generate is not a field we know about and that we should stop and tell the user that so they can fix it.

There are two parts to this:

  • [ ] Enforce the config schema (the fields in ComponentConfig). ComponentConfig.Config is freeform, but the rest of the ComponentConfig model should be enforced. This will prevent folks from putting config at the root of a object versus underneath config.

  • [ ] Enforce the component schema (the fields in Component).

timfpark avatar May 10 '19 00:05 timfpark