Skip to content
All tool news

Tool desk · Updated daily

Tool news·Netlify·

Netlify Adds JSON Schema for Netlify.toml Before Deploys.

Netlify’s JSON schema for netlify.toml lets editors and AI agents catch invalid configuration before a deploy reaches the build log.

CW

Create With tool desk

5 sources checked · 2 min read · 3 sections

ShareLinkedIn
Netlify Adds JSON Schema for Netlify.toml Before Deploys

JSON schema for netlify.toml gives editors and AI agents a way to catch invalid Netlify configuration before starting a deploy.

Previously, a mistake in netlify.toml could remain hidden until the build failed. According to the LinkedIn announcement, Netlify now publishes a JSON schema for the configuration file. Add a $schema key at the top of the file and compatible editors can validate its contents while you work.

How JSON schema for netlify.toml works

Editors that support JSON schemas for TOML can suggest valid properties as you type. They can also display each property’s description inline and flag invalid values before the file reaches Netlify’s build system.

VS Code users can enable this behaviour with the Even Better TOML extension.

  1. 1

    Add the schema

    place the `$schema` key at the top of `netlify.toml`

  2. 2

    Edit the configuration

    use inline property suggestions and descriptions

  3. 3

    Fix validation errors

    correct invalid values before starting a deploy

  4. 4

    Run the build

    leave environment-dependent checks to Netlify

The same schema can validate files produced by AI agents. An agent can check the netlify.toml it generates, identify invalid values and correct them before attempting a deployment. This reduces the number of broken deploys that need reviewing after the build begins.

Schema validation cannot confirm everything locally. Checks that depend on the project environment still happen during the build. Netlify gives the existence of a configured directory as one example.

Agent Runners can also turn visual edits into code

Netlify has also added visual editing to previews. Its separate LinkedIn post shows users moving elements, drawing on a preview and leaving notes directly on the page. Agent Runners then converts those edits into code.

The Netlify changelog explains that users can open a version of an app from the dashboard and select the edit icon above its preview. Sending the edits creates a new preview. The live app remains unchanged until that version is published.

These are distinct parts of the build process. Visual editing gives Agent Runners instructions about the interface. The JSON schema checks whether generated Netlify configuration uses valid properties and values.

Frequently asked questions

What is JSON schema for netlify.toml in Netlify?

It is a machine-readable description of the valid properties and values in a netlify.toml configuration file. Compatible editors and AI agents can use it to identify invalid configuration before deployment.

How does JSON schema validation compare with checking build logs?

Schema validation runs while the file is being edited or generated, so supported tools can flag configuration mistakes before a build starts. Without it, those mistakes may only become visible after a failed deploy appears in the build log.

What checks still happen during a Netlify build?

Checks that depend on the project environment still run during the build. For example, the schema cannot confirm whether a configured directory actually exists.

Sources

5 checked

How we cover tool news: Create With's tool desk drafts these reports with AI from the sources listed above and checks them against those sources before publishing.

Worth passing on?

ShareLinkedIn

Latest tool news

What else changed this week.

All tool news
VercelDigest

What Vercel Shipped in Early December

Vercel’s early December releases centred on AI Gateway, with six new models covering long-context reasoning, coding, speech and multimodal agents. It also cut build start times…

FigmaDigest

What Figma Shipped in Early December

Figma shipped a mix of animation, image generation, and editor usability updates. The changes span Figma Motion Adds Text Animation and Audio Tools, image workflows, and the core…

The Create With Briefing

Don't watch forty changelogs. Read one email.

Every Tuesday: the tool changes worth knowing, real business use cases, and what's on near you. Free, unsubscribe any time.