Test navigation.yaml schema
The following discussion from !2554 (merged) should be addressed:
-
@aqualls started a discussion: (+4 comments) - category_title: Offline GitLab
Observation for @sarahgerman with cc's to the usual suspects (@axil, @eread) - Clayton and I have unintentionally load tested what happens when we misspell one of these keys. I wonder if we could test for these problems?
🤔 Right now, the pipeline is green, but it shouldn't be. -
Evan has a suggestion for how to proceed: I think to find this sort of thing, our navigation YAML file would need a schema. For example, our release post YAML files have a schema: https://gitlab.com/gitlab-com/www-gitlab-com/-/blob/master/data/schemas/releasepost.schema.json. That schema is used by: https://gitlab.com/gitlab-com/www-gitlab-com/-/blob/master/bin/validate-release-post-item.
So for sure, we could extend tests to compare our YAML with the a schema, and declare what are valid keys.