gleam-lang/gleam

have `gleam check`, `gleam build` validate the gleam.toml schema

Open

#5,301 opened on Jan 19, 2026

View on GitHub
 (13 comments) (0 reactions) (0 assignees)Rust (960 forks)batch import
help wanted

Repository metrics

Stars
 (21,417 stars)
PR merge metrics
 (Avg merge 10d 19h) (69 merged PRs in 30d)

Description

Currently the inclusion of a spurious field in gleam.toml goes silently unremarked upon.

This caused me some grief just now as I didn't spot that a local dependency list should appear under [dependencies] not above it.

The proposal would be for gleam build to report the presence of unrecognized/unsupported fields in gleam.toml before it tries to build anything, i.e., for gleam build to validate the gleam.toml schema. (As versioned by the Gleam version.)

Contributor guide