Skip to content

fix: correct test error reporting, stale message, docs typos and broken anchor#223

Open
aftersnow wants to merge 1 commit into
mainfrom
aftersnow-repo-analysis-improvements
Open

fix: correct test error reporting, stale message, docs typos and broken anchor#223
aftersnow wants to merge 1 commit into
mainfrom
aftersnow-repo-analysis-improvements

Conversation

@aftersnow

Copy link
Copy Markdown
Contributor

What

A batch of small, low-risk correctness and documentation fixes found during a repository review:

  • schema/example_test.go: report example.Err instead of the stale outer err variable, so example parsing failures surface the actual error instead of <nil>. Fixes TestValidateConfigExample silently swallows example parsing errors #210
  • schema/validator.go: the internal error message referenced mapValidate, which no longer exists (the map is named validateByMediaType)
  • docs/annotations.md: lowercase the intra-doc anchor #file-metadata-annotation-value so the link resolves on GitHub
  • docs/config.md: remove the duplicated word in "the value "other" value should be used" (both inputTypes and outputTypes)
  • README.md: grammar fixes — "It's goal" → "Its goal", "in a cloud native environments" → "in cloud native environments"
  • specs-go/v1/config.go: fix grammar in the ModelFS comments ("describes a layer content addresses")

Why

These are cosmetic/correctness-only changes: no behavior, schema, or API changes. go build ./..., go vet ./..., and go test ./... all pass.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several documentation and code fixes. Key changes include fixing grammatical errors in README.md and docs/config.md, correcting a markdown link anchor in docs/annotations.md, fixing a bug in schema/example_test.go where the wrong error variable was passed to t.Error, updating an internal error message in schema/validator.go, and improving struct comments in specs-go/v1/config.go. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@aftersnow aftersnow added the bug Something isn't working label Jul 12, 2026
…en anchor

- schema/example_test.go: report example.Err instead of the stale outer err (fixes #210)
- schema/validator.go: error message referenced renamed map validateByMediaType
- docs/annotations.md: lowercase intra-doc anchor so it resolves on GitHub
- docs/config.md: remove duplicated word 'value' (x2)
- README.md: fix grammar (Its goal; cloud native environments)
- specs-go/v1/config.go: fix ModelFS comment grammar

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Zhao Chen <winters.zc@antgroup.com>
@aftersnow aftersnow force-pushed the aftersnow-repo-analysis-improvements branch from f989070 to 4c3f9a5 Compare July 12, 2026 10:10

@chlins chlins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aftersnow aftersnow enabled auto-merge July 14, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestValidateConfigExample silently swallows example parsing errors

2 participants