Skip to content

Fix go paths#443

Merged
kehoecj merged 9 commits intomainfrom
feat/action-integration
Apr 9, 2026
Merged

Fix go paths#443
kehoecj merged 9 commits intomainfrom
feat/action-integration

Conversation

@kehoecj
Copy link
Copy Markdown
Collaborator

@kehoecj kehoecj commented Apr 9, 2026

Update go /v2 dependency path

kehoecj added 8 commits April 9, 2026 09:44
Add ValidationError type with optional Line/Column fields to enable
GitHub Actions inline annotations on affected lines.

- 10 validators now return structured position info (JSON, YAML, TOML,
  XML, HCL, CSV, ENV, HOCON, TOON, PList)
- 4 validators without position info (INI, EditorConfig, Properties,
  SARIF) fall back to file-level annotations
- SARIF reporter emits region only when line info is available
- Report struct carries StartLine/StartColumn from ValidationError
- Remove dead getCustomErr function (logic moved into JSON ValidateSyntax)
- Add GitHub Action section to README.md and index.md
Use helium ErrorCollector to capture individual validation errors
instead of the generic 'xsd: validation failed' message. Errors now
include the line number and specific schema violation details.
- Standard: each error on its own indented line
- JSON: errors as an array instead of a single joined string
- SARIF: each error as its own result entry for per-error annotations
- JUnit: each error on its own line within the failure message

Add SchemaErrors type to carry individual error messages from
JSONSchemaValidate, ValidateXSD, and SARIF schema validation.
The CLI populates ValidationErrors slice on Report for reporters
to consume.
Reformat helium XSD errors from
  (string):5: Schemas validity error : Element 'port': ...
to
  line 5: Element 'port': ...

Consistent with the error format used by other validators.
- Prefix each validation error with 'syntax:' or 'schema:' to
  distinguish error types across all reporters
- Add ErrorType field to Report struct
- Add 'error-type' as a new groupby option that groups results
  into syntax, schema, and Passed categories
- Update flag help text, README, and index
Go modules require v2+ to use a /v2 suffix in the module path.
Without it, go install @v2.x.x and go get fail.

- Update go.mod module path to github.com/Boeing/config-file-validator/v2
- Update all internal imports to use /v2 prefix
- Update go install and code examples in README and index
- Update pkg.go.dev badge URLs
@kehoecj kehoecj requested a review from a team as a code owner April 9, 2026 17:37
@kehoecj kehoecj added the no changelog Do not require a CHANGELOG update for MR's. Mostly used for dependably label Apr 9, 2026
@kehoecj kehoecj merged commit 8e4cae6 into main Apr 9, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog Do not require a CHANGELOG update for MR's. Mostly used for dependably

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant