Add initial recipe for LiquidRazor DTO API bundle

This commit is contained in:
Noramarth
2025-09-18 16:16:54 +03:00
parent 7693a072e9
commit 3d4c16522f
3 changed files with 32 additions and 0 deletions
@@ -0,0 +1,13 @@
# Default, safe config
liquidrazor_dto_api:
normalizer_priority: 10
strict_types: true
# Use '3.0.3' if you need max Redoc OSS compatibility
openapi_version: '3.1.0'
default_responses:
422:
class: LiquidRazor\DtoApiBundle\Response\ValidationErrorResponse
description: 'Validation error'
500:
class: LiquidRazor\DtoApiBundle\Response\ErrorResponse
description: 'Server error'
@@ -0,0 +1,4 @@
# Wire the auto-docs + schema + listener routes from the bundle
liquidrazor_dto_api:
resource: '@LiquidRazorDtoApiBundle/Resources/config/routes.php'
prefix: /
@@ -0,0 +1,15 @@
{
"bundles": {
"LiquidRazor\\DtoApiBundle\\LiquidRazorDtoApiBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"post-install-output": [
"✅ LiquidRazor DTO API bundle installed.",
"Docs: /_docs/swagger • /_docs/redoc",
"OpenAPI: /_schema/openapi.json",
"Config: config/packages/liquidrazor_dto_api.yaml (edit defaults as you wish).",
"Routes were added via config/routes/liquidrazor_dto_api.yaml."
]
}