docs: align API docs with current implementation#41
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request aligns documentation with the current implementation by adding missing API documentation and clarifying runtime behavior. The changes are documentation-only and do not modify any code behavior.
Changes:
- Fixed non-compiling validation example in README by adding the required
Database.Hostfield - Added documentation for exported APIs:
SourceWithKeys,ErrWatchNotSupported,env:tag, and path helpers (ExpandPath,ExpandPathWithTime) - Clarified watch semantics, JSON dump format when combining options, key lowercasing behavior, and tag precedence rules
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| README.md | Added missing Database.Host field to validation example to make it compile correctly |
| docs/api-reference.md | Added documentation for SourceWithKeys, ErrWatchNotSupported, env: tag, path helpers, watch behavior, JSON dump shape, and tag precedence clarifications |
| docs/configuration-sources.md | Clarified key lowercasing behavior during loader merge and added watch behavior notes (initial snapshot + debounce) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Azhovan
approved these changes
Feb 19, 2026
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.
What
Database.Hostfield inREADME.md.docs/api-reference.mdto include missing exported API details:SourceWithKeys,ErrWatchNotSupported,env:tag support, and snapshot path helpers (ExpandPath,ExpandPathWithTime).docs/api-reference.mdanddocs/configuration-sources.mdfor watch semantics (initial snapshot + 100ms debounce), JSON dump shape when combiningAsJSON()andWithSources(), and where key lowercasing occurs.Why
Type
Testing
Executed:
go test ./... make ciResults:
go test ./...passed.make cipassed (format, vet, tests, lint) with reported coverage81.5%.Checklist
go test ./...)gofmt -s -w .)go vet ./...)Added tests if needed: N/A — docs-only changes; no runtime behavior was modified.
For reviewers: Does this align with Rigging's philosophy of simplicity and zero dependencies?