Problem · Contentful

Catch a content model change before it breaks the site

Contentful fields carry an id, a type and checks. The type of a field cannot be edited. To change it, a team deletes the field and adds a new one. A site that still reads the old field gets another shape, or nothing. In this example the new fields have the same ids as the old ones, so nothing in the names shows the change.

An example

Take the Contentful starter blog, the Gatsby example that Contentful publishes. In 2022 its authors changed three fields from Markdown text to rich text. The delivery API then sends a JSON document where a page expected a string.

What an agent sees

The content type tells an agent a name and a type. It does not tell the agent that the type changed last week. An agent that has the governed model can compare before it writes code or content.

What you can do today

  • One JSON file, the same file contentful space export writes. CoreModels needs no login to Contentful.
  • Your assistant imports it into a CoreModels project.
  • After the next change, the assistant audits the new file. The answer is pass or fail and names each removed field and each changed type.
  • The same check runs in a pull request with one command.

See the recorded run, with every prompt and answer

What it does not do

  • A field that becomes required is not reported.
  • A content type that is deleted is not reported. Its fields are no longer compared.
  • CoreModels reads the file you give it. It has no login to Contentful and it writes nothing back.

← Back to Contentful

Start building

14-day free trial. Builder $49/mo after the trial. Cancel any time.