Skip to content

docs: Enhance YAML reference with null syntax and type tags#1861

Merged
osterman merged 3 commits intomainfrom
osterman/yaml-reference-syntax
Dec 12, 2025
Merged

docs: Enhance YAML reference with null syntax and type tags#1861
osterman merged 3 commits intomainfrom
osterman/yaml-reference-syntax

Conversation

@osterman
Copy link
Copy Markdown
Member

@osterman osterman commented Dec 12, 2025

what

  • Added comprehensive section on YAML explicit type tags (!!str, !!int, !!float, !!bool) as an alternative to quoting
  • Expanded null values documentation with detailed explanation of ~ tilde shorthand
  • Added prominent warning explaining the semantic difference between null and "" empty string
  • Updated quick reference table to include null and type tag entries
  • Added practical use case for overriding inherited values to null

why

The YAML reference guide was missing documentation for explicit type tags and didn't sufficiently emphasize the difference between null and empty string, which is important in Terraform configuration where they have different behaviors.

references

Related to YAML syntax documentation completeness

Summary by CodeRabbit

  • Documentation
    • Added guidance on YAML explicit type tags (!!str, !!int, !!float, !!bool) with examples and best practices for when to use them versus quoting
    • Expanded null values section with comprehensive guidance distinguishing null, tilde (~), and empty strings, including Terraform-specific implications
    • Enhanced Quick Reference table with entries for null handling and explicit typing

✏️ Tip: You can customize this high-level summary in your review settings.

Add comprehensive documentation for YAML null values, tilde (~) shorthand,
empty strings, and explicit type tags. Clarify the semantic difference between
null and empty string, which matters in Terraform variable handling.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@osterman osterman requested a review from a team as a code owner December 12, 2025 16:55
@github-actions github-actions bot added the size/s Small size PR label Dec 12, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 12, 2025

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@osterman osterman added the no-release Do not create a new release (wait for additional code changes) label Dec 12, 2025
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Dec 12, 2025

Warning

Rate limit exceeded

@osterman has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 6 minutes and 44 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 03f92ea and 6bad795.

📒 Files selected for processing (1)
  • website/docs/reference/yaml-reference.mdx (3 hunks)
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch osterman/yaml-reference-syntax

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@osterman osterman merged commit 15bfcdf into main Dec 12, 2025
55 checks passed
@osterman osterman deleted the osterman/yaml-reference-syntax branch December 12, 2025 17:18
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.27%. Comparing base (03f92ea) to head (6bad795).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1861   +/-   ##
=======================================
  Coverage   73.27%   73.27%           
=======================================
  Files         551      551           
  Lines       53458    53458           
=======================================
+ Hits        39170    39171    +1     
+ Misses      11442    11440    -2     
- Partials     2846     2847    +1     
Flag Coverage Δ
unittests 73.27% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Dec 12, 2025

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Documentation update to the YAML reference guide adding new "Explicit Typing" section with type tag examples and significantly expanding the null/empty values section with usage guidance, distinctions, and practical examples.

Changes

Cohort / File(s) Summary
YAML Reference Documentation
website/docs/reference/yaml-reference.mdx
Added new "Explicit Typing" section covering YAML type tags (!!str, !!int, !!float, !!bool) with examples and guidance on when to use type tags vs quoting. Renamed and substantially expanded "Empty Values" section to "Empty Values, Null Values, and the Tilde (~)" with detailed coverage of null equivalence (null, ~, no-value), null vs empty string distinctions, Terraform-specific implications, and practical override examples. Enhanced Quick Reference table with two new rows for Null and Explicit Typing entries.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5–10 minutes

  • Verify YAML syntax examples are accurate and properly formatted
  • Confirm guidance on null equivalence and empty strings aligns with YAML spec and Terraform behavior
  • Check consistency of tone and formatting with existing documentation
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch osterman/yaml-reference-syntax

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 03f92ea and 6bad795.

📒 Files selected for processing (1)
  • website/docs/reference/yaml-reference.mdx (3 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

These changes were released in v1.202.0-rc.1.

@github-actions
Copy link
Copy Markdown

These changes were released in v1.203.0-test.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-release Do not create a new release (wait for additional code changes) size/s Small size PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants