{"id":28407028,"url":"https://github.com/apple-x-co/rs-csv-validator","last_synced_at":"2026-05-03T07:42:33.687Z","repository":{"id":293361599,"uuid":"983792649","full_name":"apple-x-co/rs-csv-validator","owner":"apple-x-co","description":"JSONスキーマを使用してCSVファイルを検証するRustコマンドラインツールです。","archived":false,"fork":false,"pushed_at":"2025-05-31T07:38:07.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T22:18:17.090Z","etag":null,"topics":["csv","jsonschema"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apple-x-co.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-14T23:37:07.000Z","updated_at":"2025-05-31T07:38:17.000Z","dependencies_parsed_at":"2025-05-15T00:48:13.297Z","dependency_job_id":null,"html_url":"https://github.com/apple-x-co/rs-csv-validator","commit_stats":null,"previous_names":["apple-x-co/rs-csv-validator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/apple-x-co/rs-csv-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple-x-co%2Frs-csv-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple-x-co%2Frs-csv-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple-x-co%2Frs-csv-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple-x-co%2Frs-csv-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apple-x-co","download_url":"https://codeload.github.com/apple-x-co/rs-csv-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple-x-co%2Frs-csv-validator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262600485,"owners_count":23335083,"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":["csv","jsonschema"],"created_at":"2025-06-02T00:08:41.598Z","updated_at":"2026-05-03T07:42:28.649Z","avatar_url":"https://github.com/apple-x-co.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rs-csv-validator\n\nJSONスキーマを使用してCSVファイルを検証するRustコマンドラインツールです。\n\n## 概要\n\nrs-csv-validatorは、CSVファイルの各行がJSONスキーマの仕様に準拠しているかを検証するツールです。データの整合性確保やバリデーション処理の自動化に役立ちます。\n\n## ✨ 特徴\n\n- **🔍 柔軟な型推論**: 文字列、数値（整数・浮動小数点）、真偽値、null値を自動識別\n- **📋 JSONスキーマ対応**: 業界標準のJSONスキーマ形式での検証ルール定義\n- **📊 詳細なエラー報告**: 行番号、列名、エラー内容を含む詳細なエラー情報\n- **⚡ 高性能**: Rustによる高速な処理\n\n## 使用方法\n\n### 基本的な使い方\n\n```bash\nrs-csv-validator --csv \u003cCSVファイルパス\u003e --schema \u003cJSONスキーマファイルパス\u003e\n```\n\n### オプション\n\n- `-c, --csv \u003cFILE\u003e`: 検証対象のCSVファイルパス（必須）\n- `-s, --schema \u003cFILE\u003e`: 検証に使用するJSONスキーマファイルパス（必須）\n- `-h, --help`: ヘルプメッセージを表示\n- `-V, --version`: バージョン情報を表示\n\n### 使用例\n\n```bash\n# 基本的な検証\nrs-csv-validator --csv data.csv --schema schema.json\n\n# 短縮形オプション使用\nrs-csv-validator -c data.csv -s schema.json\n```\n\n## スキーマファイルの例\n\n```json\n{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"minLength\": 1\n    },\n    \"age\": {\n      \"type\": \"integer\",\n      \"minimum\": 0,\n      \"maximum\": 150\n    },\n    \"email\": {\n      \"type\": \"string\",\n      \"format\": \"email\"\n    },\n    \"active\": {\n      \"type\": \"boolean\"\n    }\n  },\n  \"required\": [\"name\", \"age\", \"email\"]\n}\n```\n\n## CSVファイルの例\n\n```csv\nname,age,email,active\n田中太郎,25,tanaka@example.com,true\n佐藤花子,30,sato@example.com,false\n山田三郎,35,yamada@example.com,true\n```\n\n## エラー出力形式\n\n検証エラーが発生した場合、以下のようなJSON形式でエラー情報が標準エラー出力に表示されます：\n\n```json\n[\n  {\n    \"line\": 2,\n    \"column\": \"age\",\n    \"error\": \"-5 is less than the minimum of 0\"\n  },\n  {\n    \"line\": 3,\n    \"column\": \"email\",\n    \"error\": \"\\\"invalid-email\\\" is not a \\\"email\\\"\"\n  }\n]\n```\n\n各エラーオブジェクトには以下の情報が含まれます：\n\n- `line`: エラーが発生した行番号（ヘッダー行を除く）\n- `column`: エラーが発生した列名\n- `error`: エラーの詳細説明\n\n## データ型の自動変換\n\nCSVの文字列値は以下の順序で型推論されます：\n\n1. **整数**: `123`, `-456` など\n2. **浮動小数点数**: `3.14`, `-2.5` など\n3. **真偽値**: `true`, `false`（大文字小文字を区別しない）\n4. **null値**: 空文字列\n5. **文字列**: 上記以外のすべての値\n\n## 依存関係\n\n- `anyhow`: エラーハンドリング\n- `clap`: コマンドライン引数解析\n- `csv`: CSV読み込み処理\n- `jsonschema`: JSONスキーマ検証\n- `serde`: シリアライゼーション\n- `serde_json`: JSON処理","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapple-x-co%2Frs-csv-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapple-x-co%2Frs-csv-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapple-x-co%2Frs-csv-validator/lists"}