public function checkVersionConstraintAction(Request $request)
    {
        try {
            $inputData = new JsonArray($request->getContent());
        } catch (\Exception $exception) {
            return new JsonResponse(
                [
                    'status' => 'ERROR',
                    'error'  => 'invalid payload'
                ],
                JsonResponse::HTTP_BAD_REQUEST
            );
        }

        $versionParser = new VersionParser();

        if (!$inputData->has('constraint')) {
            return new JsonResponse(
                [
                    'status' => 'ERROR',
                    'error'  => 'invalid payload'
                ],
                JsonResponse::HTTP_BAD_REQUEST
            );
        }

        try {
            $versionParser->parseConstraints($inputData->get('constraint'));
        } catch (\Exception $exception) {
            return new JsonResponse(
                [
                    'status' => 'ERROR',
                    'error'  => $exception->getMessage()
                ],
                JsonResponse::HTTP_OK
            );
        }

        return new JsonResponse(
            [
                'status' => 'OK',
            ],
            JsonResponse::HTTP_OK
        );
    }