From cd3139e77824b74bd2d3dd3a7f3b870381f0a6b3 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sat, 19 Apr 2025 13:13:28 +0200 Subject: [PATCH] chore: use Reflect built-in request validation (#37) commit 15a1fb886ad5661397262773048374d49174cc16 Author: Victor Westerlund Date: Fri Apr 4 07:33:31 2025 +0200 upstream(reflect): use Reflect built-in request validation --- composer.json | 1 - composer.lock | 32 +--------------------------- endpoints/about/languages/DELETE.php | 2 +- endpoints/about/languages/GET.php | 2 +- endpoints/about/languages/POST.php | 2 +- endpoints/coffee/GET.php | 2 +- endpoints/coffee/POST.php | 2 +- endpoints/coffee/stats/GET.php | 2 +- endpoints/coffee/stats/POST.php | 2 +- endpoints/messages/POST.php | 2 +- endpoints/search/DELETE.php | 2 +- endpoints/search/GET.php | 2 +- endpoints/search/POST.php | 2 +- endpoints/update/GET.php | 2 +- endpoints/work/GET.php | 2 +- endpoints/work/actions/GET.php | 2 +- endpoints/work/tags/GET.php | 2 +- endpoints/work/timeline/GET.php | 2 +- 18 files changed, 17 insertions(+), 48 deletions(-) diff --git a/composer.json b/composer.json index d20fe64..07a4b64 100755 --- a/composer.json +++ b/composer.json @@ -1,7 +1,6 @@ { "require": { "reflect/client": "dev-master", - "reflect/plugin-rules": "dev-master", "vlw/mysql": "dev-master", "vlw/xenum": "dev-master" }, diff --git a/composer.lock b/composer.lock index 977c82f..a4dd9a1 100755 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cb70f9f3f538a72aa8bcf906fdc906bf", + "content-hash": "f74f68a452514a9d4dd011cef7648a7f", "packages": [ { "name": "reflect/client", @@ -34,35 +34,6 @@ "description": "Extendable PHP interface for communicating with Reflect API over HTTP or UNIX sockets", "time": "2024-04-06T14:55:04+00:00" }, - { - "name": "reflect/plugin-rules", - "version": "dev-master", - "source": { - "type": "git", - "url": "https://codeberg.org/reflect/rules-plugin", - "reference": "01cc1eea020ec5ea23140d86597bb5c8c1c2ec7f" - }, - "default-branch": true, - "type": "library", - "autoload": { - "psr-4": { - "ReflectRules\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "GPL-3.0-only" - ], - "authors": [ - { - "name": "Victor Westerlund", - "email": "victor.vesterlund@gmail.com" - } - ], - "description": "Add request search paramter and request body constraints to an API built with Reflect", - "abandoned": true, - "time": "2025-04-04T06:00:01+00:00" - }, { "name": "vlw/mysql", "version": "dev-master", @@ -125,7 +96,6 @@ "minimum-stability": "dev", "stability-flags": { "reflect/client": 20, - "reflect/plugin-rules": 20, "vlw/mysql": 20, "vlw/xenum": 20 }, diff --git a/endpoints/about/languages/DELETE.php b/endpoints/about/languages/DELETE.php index a1e5247..4da5b58 100644 --- a/endpoints/about/languages/DELETE.php +++ b/endpoints/about/languages/DELETE.php @@ -1,6 +1,6 @@