https://github.com/kmuenkel/json-schema-laravel
This is a Laravel Request-compatible override for opis/json-schema.
https://github.com/kmuenkel/json-schema-laravel
Last synced: 4 months ago
JSON representation
This is a Laravel Request-compatible override for opis/json-schema.
- Host: GitHub
- URL: https://github.com/kmuenkel/json-schema-laravel
- Owner: kmuenkel
- License: mit
- Created: 2020-12-01T00:03:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-01T00:05:14.000Z (over 4 years ago)
- Last Synced: 2024-12-23T11:19:47.572Z (5 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel JSON-Schema Validator
This is simply an override class for the opis/json-schema package which leverages a Laravel interface, enabling it to be compatible with custom Request classes. To implement it, simply use the `JsonSchema\JsonSchemaValidation` trait inyour custom instance of `Illuminate\Foundation\Http\FormRequest`. Then either apply the schema filepath, storage path, URL, array, object, or string, as the output of your `rules()` method.