Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid applies_to keys can be set in front matter #610

Open
1 of 3 tasks
shainaraskas opened this issue Feb 25, 2025 · 0 comments
Open
1 of 3 tasks

invalid applies_to keys can be set in front matter #610

shainaraskas opened this issue Feb 25, 2025 · 0 comments
Labels

Comments

@shainaraskas
Copy link
Contributor

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 errors we should do some validation

Steps to reproduce

applies_to:
  deployment:
      serverless: all
      hosted: all

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure
@shainaraskas shainaraskas changed the title invalid keys can be set in front matter invalid applies_to keys can be set in front matter Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant