jane-php / json-schema-bundle
Jane JsonSchema Symfony Bundle
Requires
- php: ^8.0
- jane-php/json-schema: ^7.5
Requires (Dev)
- phpunit/phpunit: ^8.5
- symfony/framework-bundle: ^5.4 || ^6.4 || ^7.0 || ^8.0
Suggests
None
Provides
None
Conflicts
- symfony/framework-bundle: 5.1.0
Replaces
None
This package is auto-updated.
Last update: 2026-09-01 18:06:09 UTC
README
The component ships a Bundle to allow a quick integration with Symfony for the JsonSchema component of Jane.
Note: If you use Symfony Flex, the configuration is automatic
To use it, you just have to add the main bundle class to your config/bundles.php file.
return [
// ...
Jane\Bundle\JsonSchemaBundle\JaneJsonSchemaBundle::class => ['dev' => true],
];
Usage
Once the bundle is registered, the generation command is available in your Symfony console:
php bin/console jane:json-schema:generate
By default, the command looks for your Jane configuration at config/jane/json-schema.php relative to your project
directory (the legacy config/jane/json_schema.php path is also supported) and falls back to a .jane file in the
current working directory. Use the --config-file (-c) option to point to another configuration file:
php bin/console jane:json-schema:generate --config-file=config/jane/json-schema.php
The configuration file format is documented in the "Configuration file" section of the JSON Schema documentation.