Skip to content

feat: implement WebAssembly-based Spectral linter#47

Open
hivanov wants to merge 2 commits intomainfrom
feature/wasm
Open

feat: implement WebAssembly-based Spectral linter#47
hivanov wants to merge 2 commits intomainfrom
feature/wasm

Conversation

@hivanov
Copy link
Collaborator

@hivanov hivanov commented Mar 5, 2026

  • Bundle Spectral linter and SchwarzIT ruleset into a WASM component.
  • Add WIT definitions for the linter interface (WASI 0.2/0.3).
  • Implement automated build process with pnpm build:wasm.
  • Add test suite verifying linter behavior in direct and OCI environments.
  • Document architecture and lessons learned in wasm/GEMINI.md.

- Bundle Spectral linter and SchwarzIT ruleset into a WASM component.
- Add WIT definitions for the linter interface (WASI 0.2/0.3).
- Implement automated build process with pnpm build:wasm.
- Add test suite verifying linter behavior in direct and OCI environments.
- Document architecture and lessons learned in wasm/GEMINI.md.
Copy link
Member

@markbrockhoff markbrockhoff left a comment

Choose a reason for hiding this comment

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

❌ This functionality should not be part of this repository. There is no use in publishing a WASM version of linter rules which are then no longer compatible with spectral.
This repository has one simple job -> Contain and publish the linter rules. Executing the linter with the rules is a different responsablity, e.g. if the Spectral IntelliJ Plugin should execute WASM it should build the WASM binary for spectral (possibly bundling the current version of the rules) as part of it's repository but not in here.

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