Skip to content

fix: correct typo and mismatched godoc comment names#200

Open
Liuck27 wants to merge 2 commits intomodelpack:mainfrom
Liuck27:fix-typos
Open

fix: correct typo and mismatched godoc comment names#200
Liuck27 wants to merge 2 commits intomodelpack:mainfrom
Liuck27:fix-typos

Conversation

@Liuck27
Copy link
Copy Markdown

@Liuck27 Liuck27 commented Mar 28, 2026

Description

  • Fix typo "incercept" → "intercept" in schema/example_test.go
  • Fix godoc comments in specs-go/v1/mediatype.go where three weight config constants (MediaTypeModelWeightConfig, MediaTypeModelWeightConfigGzip, MediaTypeModelWeightConfigZstd) had comments incorrectly referencing MediaTypeModelConfig* instead of MediaTypeModelWeightConfig*

Motivation and Context

The godoc comment names did not match their corresponding constants, which could mislead contributors reading the documentation. The typo is a straightforward spelling error.

Fix a typo in schema/example_test.go where "incercept" was misspelled
(should be "intercept").

Fix godoc comments in specs-go/v1/mediatype.go where three weight config
constants (MediaTypeModelWeightConfig, MediaTypeModelWeightConfigGzip,
MediaTypeModelWeightConfigZstd) had comments referencing the wrong names
(MediaTypeModelConfig, MediaTypeModelConfigGzip, MediaTypeModelConfigZstd).

Signed-off-by: Luca Secchieri <luca.secchieri@gmail.com>
Copy link
Copy Markdown
Contributor

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

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 fixes a typo in schema/example_test.go and updates documentation comments in specs-go/v1/mediatype.go to align with the actual constant names. The feedback suggests further clarifying these comments by removing 'config.json' from the list of examples to avoid potential confusion with other media types.

…constants

Remove `config.json` from the example files in MediaTypeModelWeightConfig*
comments to avoid confusion with the ModelPack artifact config
(application/vnd.cncf.model.config.v1+json) defined in docs/config.md.

Also fix the description in MediaTypeModelWeightConfigRaw which incorrectly
referred to "model weights" instead of "configuration of the model weights".

Signed-off-by: Luca Secchieri <luca.secchieri@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant