Merged
Conversation
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
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.
Update go /v2 dependency path