elastic / elastic/docs-builder
invalid `applies_to` keys can be set in front matter
Open
ai-triaged
ai:writer-question
bug
good AI issue
- Dominant language
- C#
- Stars
- 24
- Forks
- 44
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 146
Description
### Describe the bug
I passed the following key:
```
applies_to:
deployment:
serverless: all
hosted: all
```
`hosted` and `serverless` is not a valid subkey of `deployment`, so the little tag didn't appear in my page. however, the PR passed CI with no problems
### Expected behavior
invalid keys throw CI errors
I realize that we want to allow custom keys, but in the other well-defined key/subkey areas we should do some validation
### Steps to reproduce
```
applies_to:
deployment:
serverless: all
hosted: all
```
### Tooling
- [x] docs-builder
- [ ] migration tooling
- [ ] I'm not sure
Contributor guide
Assessment
This issue has not been assessed yet.