Skip to content

build: add automatic schema URL replacement in TOML files#471

Merged
pamburus merged 1 commit intomainfrom
feature/schema-check
Jan 16, 2026
Merged

build: add automatic schema URL replacement in TOML files#471
pamburus merged 1 commit intomainfrom
feature/schema-check

Conversation

@pamburus
Copy link
Owner

@pamburus pamburus commented Jan 16, 2026

Changes

  • Implement build script to replace HTTP(S) schema URLs with relative paths
  • Add SHA256 hash validation to ensure local schemas match remote versions
  • Replace schema URLs in config and theme TOML files with relative paths
  • Add taplo and tombi validation to CI/CD workflows
  • Add tombi.toml configuration for TOML linting
  • Reformat JSON schema files for consistency
  • Add setup script for development tools
  • Enhance justfile with TOML validation targets

The build script now automatically:

  • Scans all *.toml files in the assets directory
  • Detects schema directives using HTTP(S) URLs
  • Validates local schemas against remote versions via SHA256
  • Replaces URLs with relative paths to local schema files

This ensures offline-first operation while maintaining schema validation.

@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.58%. Comparing base (3ef77f2) to head (4eeaef9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #471   +/-   ##
=======================================
  Coverage   76.58%   76.58%           
=======================================
  Files          29       29           
  Lines        4011     4011           
=======================================
  Hits         3072     3072           
  Misses        939      939           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Implement build script to replace HTTP(S) schema URLs with relative paths
- Add SHA256 hash validation to ensure local schemas match remote versions
- Replace schema URLs in config and theme TOML files with relative paths
- Add taplo and tombi validation to CI/CD workflows
- Add tombi.toml configuration for TOML linting
- Reformat JSON schema files for consistency
- Add setup script for development tools
- Enhance justfile with TOML validation targets

The build script now automatically:
- Scans all *.toml files in the assets directory
- Detects schema directives using HTTP(S) URLs
- Validates local schemas against remote versions via SHA256
- Replaces URLs with relative paths to local schema files

This ensures offline-first operation while maintaining schema validation.
@pamburus pamburus force-pushed the feature/schema-check branch from 630dd2e to 4eeaef9 Compare January 16, 2026 20:32
@pamburus pamburus marked this pull request as ready for review January 16, 2026 20:40
@pamburus pamburus merged commit 5e4016f into main Jan 16, 2026
12 checks passed
@pamburus pamburus deleted the feature/schema-check branch January 16, 2026 20:40
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.

1 participant