{"id":23586902,"url":"https://github.com/pro-2684/scheval","last_synced_at":"2025-11-03T11:30:30.309Z","repository":{"id":269441318,"uuid":"907285081","full_name":"PRO-2684/scheval","owner":"PRO-2684","description":"A fast and *smart* command-line tool for JSON Schema validation, powered by the `jsonschema` crate.","archived":false,"fork":false,"pushed_at":"2025-02-10T02:49:39.000Z","size":161,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T03:26:57.003Z","etag":null,"topics":["cli","json-schema","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/scheval","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PRO-2684.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-23T08:42:11.000Z","updated_at":"2025-02-10T02:49:43.000Z","dependencies_parsed_at":"2024-12-23T15:40:14.606Z","dependency_job_id":"e099cad7-55ba-4268-8a06-f5e1fd35b0e6","html_url":"https://github.com/PRO-2684/scheval","commit_stats":null,"previous_names":["pro-2684/scheval"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRO-2684%2Fscheval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRO-2684%2Fscheval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRO-2684%2Fscheval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRO-2684%2Fscheval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PRO-2684","download_url":"https://codeload.github.com/PRO-2684/scheval/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412434,"owners_count":19634016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","json-schema","rust"],"created_at":"2024-12-27T04:16:02.815Z","updated_at":"2025-11-03T11:30:30.275Z","avatar_url":"https://github.com/PRO-2684.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scheval\n\n[![GitHub License](https://img.shields.io/github/license/PRO-2684/scheval?logo=opensourceinitiative)](https://github.com/PRO-2684/scheval/blob/main/LICENSE)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PRO-2684/scheval/release.yml?logo=githubactions)](https://github.com/PRO-2684/scheval/blob/main/.github/workflows/release.yml)\n[![GitHub Release](https://img.shields.io/github/v/release/PRO-2684/scheval?logo=githubactions)](https://github.com/PRO-2684/scheval/releases)\n[![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/PRO-2684/scheval/total?logo=github)](https://github.com/PRO-2684/scheval/releases)\n[![GitHub Downloads (all assets, latest release)](https://img.shields.io/github/downloads/PRO-2684/scheval/latest/total?logo=github)](https://github.com/PRO-2684/scheval/releases/latest)\n[![Crates.io Version](https://img.shields.io/crates/v/scheval?logo=rust)](https://crates.io/crates/scheval)\n[![Crates.io Total Downloads](https://img.shields.io/crates/d/scheval?logo=rust)](https://crates.io/crates/scheval)\n\nA fast and *smart* command-line tool for JSON Schema validation, powered by the `jsonschema` crate. Currently still in development.\n\n## 🚀 Installation\n\nIf you have `cargo-binstall`, you can install this tool by running:\n\n```shell\n$ cargo binstall scheval\n```\n\nOtherwise, you can install it from source:\n\n```shell\n$ cargo install scheval\n```\n\n## ✨ Features\n\n### Including\n\n- `vscode`: Respect `json.schemas` field at `.vscode/settings.json` if present\n- `suffix`: Validate `\u003cfilename\u003e.json` with `\u003cfilename\u003e.schema.json` under working directory\n\n### Excluding\n\nTBD\n\n## 🚀 Quick Start\n\n`scheval` can be run without any arguments. It will automatically use all available features.\n\n```shell\n$ scheval\n```\n\nAlternatively, you can specify a list of smart including features to use:\n\n```shell\n$ scheval --include vscode # Uses only `vscode`\n$ scheval --include suffix # Uses only `suffix`\n$ scheval --include vscode --include suffix # Uses both `vscode` and `suffix`\n$ # Shorthands provided by `clap`\n$ scheval -i vscode -i suffix\n$ scheval -ivscode -isuffix\n```\n\n## 📚 Usage\n\n```shell\n$ scheval --help\nA fast and *smart* command-line tool for JSON Schema validation, powered by the `jsonschema` crate.\n\nUsage: scheval [OPTIONS]\n\nOptions:\n  -i, --include \u003cINCLUDE\u003e\n          What smart including features to use. Available: `vscode`, `suffix`. Default to all\n\n          - `vscode`: Respect `json.schemas` field at `.vscode/settings.json` if present\n          - `suffix`: Validate `\u003cfilename\u003e.json` with `\u003cfilename\u003e.schema.json` under working directory\n\n  -h, --help\n          Print help (see a summary with '-h')\n\n  -V, --version\n          Print version\n```\n\n## 📝 Notes\n\nThis project uses [`globwalk`](https://github.com/Gilnaa/globwalk) for pattern matching, which might be buggy. Notably in `fileMatch` field:\n\n- `./` is not supported (I've included a quick fix by removing the prefix, but have not considered other cases, like `././` or `!./`)\n- `../` is not supported (A warning will be shown, and the pattern will be ignored)\n\nIf you have a good alternative which supports [VSCode's `fileMatch` syntax](https://code.visualstudio.com/docs/languages/json#_file-match-syntax), please let me know.\n\nPossible alternatives:\n\n- [globset](https://docs.rs/globset/)\n- [ignore](https://docs.rs/ignore/)\n\n## TODO\n\n- [ ] Implement `vscode` auto detection\n  - [x] Better support for `fileMatch`\n    - [x] Relative path\n    - [x] Absolute path (workspace)\n  - [ ] Support for `url`\n    - [x] Local schema (path)\n    - [ ] Remote schema (URL)\n  - [x] Support for `schema` (Inline schema)\n- [ ] Smartly exclude paths\n- [ ] Add more tests \u0026 documentation\n- [ ] Better error handling\n- [ ] Output\n  - [ ] Handle output in `main.rs`\n  - [ ] Use commandline argument `--verbose` for increased verbosity\n  - [x] Colorize output (https://docs.rs/anstyle or https://docs.rs/colored)\n- [ ] Improve performance using references\n- [ ] Possibly adding more features\n- [x] [Reduce binary size](https://github.com/johnthagen/min-sized-rust)\n- [x] Automation using GitHub Actions\n  - [x] Release (respecting `cargo-binstall`)\n  - [x] Publish\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpro-2684%2Fscheval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpro-2684%2Fscheval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpro-2684%2Fscheval/lists"}