Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
},
"require": {
"php": ">=8.0",
"ext-swoole": "*"
"ext-swoole": "*",
"utopia-php/validators": "0.1.*"
},
"require-dev": {
"phpunit/phpunit": "^9.5.25",
Expand Down
361 changes: 206 additions & 155 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Getting-Starting-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ use Utopia\Http\Swoole\Response;
use Swoole\Http\Server;
use Swoole\Http\Request as SwooleRequest;
use Swoole\Http\Response as SwooleResponse;
use Utopia\Http\Validator\Wildcard;
use Utopia\Validator\Wildcard;

$http = new Server("0.0.0.0", 8080);

Expand Down
2 changes: 1 addition & 1 deletion example/src/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Utopia\Http\Http;
use Utopia\Http\Response;
use Utopia\Http\Adapter\Swoole\Server;
use Utopia\Http\Validator\Text;
use Utopia\Validator\Text;

Http::get('/')
->param('name', 'World', new Text(256), 'Name to greet. Optional, max length 256.', true)
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Utopia\Http;

use Utopia\Validator;

class Hook
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Utopia\Http;

use Utopia\Validator;

class Http
{
/**
Expand Down
57 changes: 0 additions & 57 deletions src/Http/Validator.php

This file was deleted.

86 changes: 0 additions & 86 deletions src/Http/Validator/AllOf.php

This file was deleted.

87 changes: 0 additions & 87 deletions src/Http/Validator/AnyOf.php

This file was deleted.

116 changes: 0 additions & 116 deletions src/Http/Validator/ArrayList.php

This file was deleted.

Loading