json-validation-bundle
json-validation-bundle copied to clipboard
A Symfony bundle that provides an annotation to validate request/response JSON against a schema
Hello, I receive the deprecation notification in Symfony version 5.4.* : `Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child...
Hi, I know it's not an error but how can error messages be translated? I don't see that this behavior is documented. Thanks
before php8 ```php /** * @ValidateJsonRequest("JsonSchema/Request/myAction.json", methods={"POST"}, emptyIsValid=true) * @ValidateJsonResponse("JsonSchema/Response/myAction.json", statuses={"200"}, emptyIsValid=true) */ ``` after php8 ```php #[ValidateJsonRequest('JsonSchema/Request/myAction.json', methods: ["POST"], emptyIsValid: true] #[ValidateJsonResponse('JsonSchema/Response/myAction.json', statuses: [200], emptyIsValid: true] ```