avallac/silex-jsonvalidator-component

A Silex service provider for working with JSON Schema

v1.0.0 2017-09-24 17:01 UTC

This package is not auto-updated.

Last update: 2024-11-13 05:24:20 UTC


README

silex-jsonvalidator-component is a Silex component for working with JSON Schema.

Installation

Install the silex-jsonvalidator-component using composer. This project uses sematic versioning.

composer require avallac/silex-jsonvalidator-component "~1.0"

Parameters

  • jsonValidator.path: (string) path to json files
  • jsonValidator.debug: (bool) enable debug Services
  • jsonValidator: An instance of JsonValidatorService

Registering

$app->register(new JsonSchemaServiceProvider(), ['jsonValidator.debug' => true]);

JSON Validation