Check that authored YAML conforms to a schema before processing #1720
Labels
enhancement
New feature or request
tools and infrastructure
Project internal tooling, such as linters, GitHub Actions, or repo settings
Declaring a schema for authored files (with internal-only fields like
draft_date
andcompute_from
) and validating files against it would prevent certain kinds of mistakes, like settingcompute_from
instead ofstatus.compute_from
. See https://github.com/web-platform-dx/web-features/pull/1703/files#r1741081696 for an example of the kind of error I would like to catch.I wonder if using a type validation library, like zod, would help here. We do some ad-hoc validation, but nothing comprehensive.
The text was updated successfully, but these errors were encountered: