{"id":19422846,"url":"https://github.com/dutchcodingcompany/laravel-json-schema","last_synced_at":"2026-01-20T14:33:15.699Z","repository":{"id":56973389,"uuid":"403958030","full_name":"DutchCodingCompany/laravel-json-schema","owner":"DutchCodingCompany","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-15T13:44:16.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T20:54:13.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/DutchCodingCompany.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2021-09-07T11:48:48.000Z","updated_at":"2024-08-15T13:44:19.000Z","dependencies_parsed_at":"2024-08-15T15:25:38.679Z","dependency_job_id":"84b1915d-719d-4145-a374-2fb85f57033d","html_url":"https://github.com/DutchCodingCompany/laravel-json-schema","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"401121227e36070cd2b887a9553c547578b93d60"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DutchCodingCompany%2Flaravel-json-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DutchCodingCompany%2Flaravel-json-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DutchCodingCompany%2Flaravel-json-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DutchCodingCompany%2Flaravel-json-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DutchCodingCompany","download_url":"https://codeload.github.com/DutchCodingCompany/laravel-json-schema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478236,"owners_count":20945262,"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-10T13:35:29.399Z","updated_at":"2026-01-20T14:33:15.692Z","avatar_url":"https://github.com/DutchCodingCompany.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Json Schema\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/dutchcodingcompany/laravel-json-schema.svg?style=flat-square)](https://packagist.org/packages/dutchcodingcompany/laravel-json-schema)\n[![Total Downloads](https://img.shields.io/packagist/dt/dutchcodingcompany/laravel-json-schema.svg?style=flat-square)](https://packagist.org/packages/dutchcodingcompany/laravel-json-schema)\n\nThis package makes it easy to use `swaggest/json-schema` in laravel.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require dutchcodingcompany/laravel-json-schema\n```\n\n## Usage\n1. Create a json schema in the schema directory, eg. `storage/app/schema/example.json`\n2. Reference the schema in the validator using one of the rules:\n   - `new \\DutchCodingCompany\\LaravelJsonSchema\\Rules\\JsonSchemaRule('example')`\n   - `new \\DutchCodingCompany\\LaravelJsonSchema\\Rules\\JsonSchemaAttributeRule('type', TypeEnum::class)` (be careful to validate the attribute `type` in this case)\n\nTo customize the schema directory, use environment variable `JSON_SCHEMA_DIRECTORY` or publish the config file.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutchcodingcompany%2Flaravel-json-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdutchcodingcompany%2Flaravel-json-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutchcodingcompany%2Flaravel-json-schema/lists"}