Repository navigation
Validate the JSON configs against the frontend schemas in CI - #675
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
tom2drum
commented
Nov 27, 2026
tom2drum
left a comment
Collaborator
Author
There was a problem hiding this comment.
✅ Cleared — 0 blockers, 0 majors open
blocker 0 · major 0 · nit 0 · not anchorable 0
Axes: spec skipped (no spec) · standards · correctness
— Reviewed by cursor (Grok 4.7)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The JSON configs here are described by the schemas of the frontend's envs validator, but nothing checked a file against them before it was merged: a broken config was found only when a frontend container that uses it started. The validators this repository used to keep were copies of those schemas and went stale, which is why they were removed.
This PR adds a CI job that validates the configs against the schemas where they live, without a copy:
main, builds its config-file validator (added in Let the configs repository validate its JSON config files against the envs validator schemas frontend#3952) and runs it over the files.tools/config-validator/index.jsholds the only thing this repository has to know: which directory is validated as which variable.Checksworkflow can also be run by hand with afrontend_refinput, to validate against another branch of the frontend, for example a schema change that has not merged yet.Validated directories:
featured-networksNEXT_PUBLIC_FEATURED_NETWORKSmarketplaceNEXT_PUBLIC_MARKETPLACE_CONFIG_URLmarketplace-categoriesNEXT_PUBLIC_MARKETPLACE_CATEGORIES_URLmarketplace-subgraph-linksNEXT_PUBLIC_MARKETPLACE_GRAPH_LINKS_URLfooter-linksNEXT_PUBLIC_FOOTER_LINKSwidgetsNEXT_PUBLIC_ADDRESS_3RD_PARTY_WIDGETS_CONFIG_URLhomepage-highlightsNEXT_PUBLIC_HOMEPAGE_HIGHLIGHTS_CONFIGhero-bannerNEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIGcolor-themesNEXT_PUBLIC_COLOR_THEME_OVERRIDESAll 220 files in them pass the schemas on the frontend's
main.What this changes for a contributor
Validate configs against the frontend schemajob, with the file and the path of the problem in the log.main, so a schema tightened there can turn this repository's checks red without a change here. The frontend's validator docs tell its authors to run this validation before merging such a change.Not validated
cross-chain— the ZetaChain files belong to a chain variant that is being removed (Remove ZetaChain support frontend#3897), and the frontend has no schema for the Avalanche ones.marketplace-security-reports— its variable is deprecated.multisearch— not read by the frontend application.🤖 Generated with Claude Code