webiny / webiny-js

Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
https://www.webiny.com
Other
7.29k stars 601 forks source link

Headless CMS - Introduce `createCmsModelPlugin` and `createCmsGroupPlugin` #4089

Closed adrians5j closed 4 months ago

adrians5j commented 4 months ago

Changes

This PR introduces the createCmsModelPlugin and createCmsGroupPlugin functions.

It also fixes an issue with storageId validation. Prior to this PR, users would not be able to use the existing createCmsModel just because the storageId it generates internally would not comply to the rules set within the CmsModelPlugin.

How Has This Been Tested?

Manually, relying on existing tests.

Documentation

Changelog.

Update existing Define Content Models via Code article.