From 22b4568e709d826cb3a5d0ef9433b037614e12b4 Mon Sep 17 00:00:00 2001 From: David Evdoshchenko <773021792e@gmail.com> Date: Thu, 3 Sep 2026 18:18:36 +0200 Subject: [PATCH] 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. --- .../config/packages/outcomer_validation.yaml | 16 ++++++++++++++++ .../4.0/manifest.json | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 outcomer/symfony-json-schema-validation/4.0/config/packages/outcomer_validation.yaml create mode 100644 outcomer/symfony-json-schema-validation/4.0/manifest.json diff --git a/outcomer/symfony-json-schema-validation/4.0/config/packages/outcomer_validation.yaml b/outcomer/symfony-json-schema-validation/4.0/config/packages/outcomer_validation.yaml new file mode 100644 index 00000000..874673e2 --- /dev/null +++ b/outcomer/symfony-json-schema-validation/4.0/config/packages/outcomer_validation.yaml @@ -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 diff --git a/outcomer/symfony-json-schema-validation/4.0/manifest.json b/outcomer/symfony-json-schema-validation/4.0/manifest.json new file mode 100644 index 00000000..7cfdf422 --- /dev/null +++ b/outcomer/symfony-json-schema-validation/4.0/manifest.json @@ -0,0 +1,17 @@ +{ + "bundles": { + "Outcomer\\ValidationBundle\\OutcomerValidationBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "post-install-output": [ + " ", + " What's next? ", + " ", + "", + " * Configure your JSON Schema validation in config/packages/outcomer_validation.yaml", + " * Create your first schema in config/validation/schemas/", + " * Read the documentation at https://github.com/outcomer/symfony-json-schema-validation" + ] +}