Skip to content

Support TinyGo SARIF parsing and writing - #6

Merged
andrew merged 2 commits into
mainfrom
tinygo-validation
Sep 26, 2026
Merged

andrew merged 2 commits into
mainfrom
tinygo-validation

Conversation

@andrew

@andrew andrew commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

The JSON Schema dependency prevents TinyGo consumers from importing sarif, including for parsing and writing reports. Move schema compilation and validation behind !tinygo so those operations and the generated defaults remain usable.

Under TinyGo, Validate returns errors.ErrUnsupported, Valid returns false, and Schema is unavailable. Native Go retains the existing validation API and behaviour. Document the limitation and add regression tests and WebAssembly build checks.

Copilot AI lite review requested due to automatic review settings September 26, 2026 08:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@andrew
andrew merged commit fe6de84 into main Sep 26, 2026
8 checks passed
@andrew
andrew deleted the tinygo-validation branch September 26, 2026 20:04
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.

2 participants