{"id":21073236,"url":"https://github.com/valentinvignal/action-json-keys","last_synced_at":"2025-08-09T12:39:37.445Z","repository":{"id":52591350,"uuid":"359183830","full_name":"ValentinVignal/action-json-keys","owner":"ValentinVignal","description":"A GitHub action to check keys of json files","archived":false,"fork":false,"pushed_at":"2021-04-24T12:25:50.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-17T20:05:59.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ValentinVignal.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}},"created_at":"2021-04-18T15:38:25.000Z","updated_at":"2021-04-24T12:24:26.000Z","dependencies_parsed_at":"2023-01-04T16:50:37.542Z","dependency_job_id":null,"html_url":"https://github.com/ValentinVignal/action-json-keys","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":"0.040000000000000036","last_synced_commit":"79388f0b066431537c297e63ebb0c4efa5ab3a1b"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinVignal%2Faction-json-keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinVignal%2Faction-json-keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinVignal%2Faction-json-keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ValentinVignal%2Faction-json-keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ValentinVignal","download_url":"https://codeload.github.com/ValentinVignal/action-json-keys/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243515511,"owners_count":20303258,"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":[],"created_at":"2024-11-19T19:00:30.355Z","updated_at":"2025-03-14T03:21:06.703Z","avatar_url":"https://github.com/ValentinVignal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# action-json-keys\nA GitHub action to check keys of json files\n## How to use it\n\nCreate a `.yml` file in `./github/workflows/` in your project.\n\n## Inputs\n\n- `file-matcher`: Minimatch expression of the json files to check.\n  - Optional.\n  - Default: `'**/*.json'`.\n- `order`: The alphabetical key order.\n  - Options: `'acs'`, `'desc'`.\n  - Optional.\n  - Default: `'asc'`.\n- `key-format`: Format of the keys.\n  - Options: `'snake_case'`, `'camelCase'`, `'PascalCase'`, `'kebab-case'`.\n    You can also put your custom regular expression.\n  - Optional.\n  - Default: `'camelCase'`.\n  \n\n## Outputs\n\nNo output.\n\n## Result\n\nIt will fail the checks on your Pull Requests if any issue is found.\n\n\n## Example usage\n\n```yml\non: [pull_request]\n\njobs:\n  linter:\n    runs-on: ubuntu-latest\n    name: Check JSON keys\n    steps:\n    - name: Checkout code\n      uses: actions/checkout@v2\n    - name: Check json files\n      uses: ValentinVignal/action-json-keys@v0.5\n      with:\n        file-matcher: 'json/**/*.json'\n```\n\nIf you want to use your own regular expression, you can use the option `key-format`:\n\n```yml\non: [pull_request]\n\njobs:\n  linter:\n    runs-on: ubuntu-latest\n    name: Check JSON keys\n    steps:\n    - name: Checkout code\n      uses: actions/checkout@v2\n    - name: Check json files\n      uses: ValentinVignal/action-json-keys@v0.5\n      with:\n        file-matcher: 'json/**/*.json'\n        key-format: '^(([A-Z]{2})|([a-z0-9_]*))$' # snake_case or country code\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentinvignal%2Faction-json-keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalentinvignal%2Faction-json-keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentinvignal%2Faction-json-keys/lists"}