Outcomer validation bundle (#2042)

* Add PHP and Symfony framework requirements to manifest.json

* Refactor manifest.json to remove PHP and Symfony framework requirements

* Remove Symfony version requirements from manifest.json

* Add recipe version 4.0 for outcomer/symfony-json-schema-validation

Adds auto_cast_query and auto_cast_path options to the default
outcomer_validation.yaml config, matching the bundle's 4.0 release.

* Use the new schemas (path/domain pairs) option in the 4.0 recipe

schemas_path/schema_domain are deprecated in favor of schemas as of
bundle 4.0.

* Fix YAML indentation to be a multiple of 4 spaces

The CI lint requires every indentation level to be a multiple of 4
spaces; the list item's inline "path:" key broke that rule.
This commit is contained in:
David Evdoshchenko
2026-09-03 20:18:36 +04:00
committed by GitHub
parent 05d1703910
commit 22b4568e70
2 changed files with 33 additions and 0 deletions
@@ -0,0 +1,16 @@
outcomer_validation:
# Path/domain pairs for your JSON Schema files
schemas:
-
path: '%kernel.project_dir%/config/validation/schemas'
domain: 'https://example.com'
# Automatically cast numeric/boolean strings before validation
auto_cast_query: true
auto_cast_path: true
# Custom filters (optional)
# Uncomment and add your custom filters here
#filters:
# uuid: App\Validation\Filter\UuidFilter
# date: App\Validation\Filter\DateFilter
@@ -0,0 +1,17 @@
{
"bundles": {
"Outcomer\\ValidationBundle\\OutcomerValidationBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"post-install-output": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> What's next? </>",
"<bg=blue;fg=white> </>",
"",
" * <fg=blue>Configure</> your JSON Schema validation in <comment>config/packages/outcomer_validation.yaml</>",
" * <fg=blue>Create</> your first schema in <comment>config/validation/schemas/</>",
" * <fg=blue>Read</> the documentation at <comment>https://github.com/outcomer/symfony-json-schema-validation</>"
]
}