You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Sarif reporter to provide region info based on validator findings (#442)
* feat: add SARIF region with startLine/startColumn for PR annotations
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
* docs: update CHANGELOG
* fix: improve XSD validation error messages with detailed diagnostics
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.
* feat: separate multiple validation errors across all reporters
- 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.
* fix: clean up XSD validation error format
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.
* feat: add syntax/schema error prefixes and error-type groupby
- 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
* docs: update CHANGELOG for 2.1.0
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
## [2.1.0] - 2026-04-09
11
+
12
+
### Added
13
+
14
+
- SARIF reporter now includes `region` with `startLine`/`startColumn` for inline PR annotations in GitHub Actions
15
+
-`ValidationError` type with optional `Line`/`Column` fields for structured error positions
16
+
- Multiple validation errors are now separated across all reporters: each error on its own line (standard), array of errors (JSON), individual result entries (SARIF), newline-separated in failure message (JUnit)
17
+
-`SchemaErrors` type to carry individual schema validation error messages
18
+
- Validation errors are prefixed with `syntax:` or `schema:` to distinguish error types
19
+
-`error-type` groupby option to group output by syntax errors, schema errors, and passed files
20
+
- GitHub Action section in README and index referencing `Boeing/validate-configs-action@v2.0.0`
21
+
22
+
### Fixed
23
+
24
+
- XSD validation errors now show detailed diagnostics instead of generic "xsd: validation failed"
25
+
- XSD error format cleaned up from `(string):5: Schemas validity error : ...` to `line 5: ...`
26
+
27
+
## [2.0.0] - 2026-04-08
28
+
10
29
### Added
11
30
12
31
- SARIF syntax and schema validation using the go-sarif library
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,16 @@ If you have a go environment on your desktop you can use [go install](https://go
124
124
go install github.com/Boeing/config-file-validator/cmd/validator@latest
125
125
```
126
126
127
+
## GitHub Action
128
+
129
+
A GitHub Action is available to run the config-file-validator as part of your CI/CD pipeline. It posts validation results as PR comments with inline annotations on the affected files and lines.
130
+
131
+
```yaml
132
+
- uses: Boeing/validate-configs-action@v2.0.0
133
+
```
134
+
135
+
See the [validate-configs-action](https://github.com/Boeing/validate-configs-action) repository for full usage and configuration options.
136
+
127
137
## Usage
128
138
129
139
```
@@ -152,7 +162,7 @@ optional flags:
152
162
-globbing
153
163
If globbing flag is set, check for glob patterns in the arguments.
154
164
-groupby string
155
-
Group output by filetype, directory, pass-fail. Supported for Standard and JSON reports
165
+
Group output by filetype, directory, pass-fail, error-type. Supported for Standard and JSON reports
156
166
-no-schema
157
167
Disable all schema validation. Only syntax is checked.
158
168
Cannot be used with --require-schema, --schema-map, or --schemastore.
0 commit comments