Skip to main content
Glama

OpenFGA MCP

TestableValidator.php1.07 kB
<?php declare(strict_types=1); namespace OpenFGA\MCP\Tests\Unit\Models\Traits; use OpenFGA\MCP\Models\Traits\ValidatesInput; // Test class that uses the ValidatesInput trait for testing final class TestableValidator { use ValidatesInput; public function testValidateNonNegative(int $value, string $fieldName): void { $this->validateNonNegative($value, $fieldName); } public function testValidateNotEmpty(string $value, string $fieldName): void { $this->validateNotEmpty($value, $fieldName); } public function testValidatePattern(string $value, string $pattern, string $fieldName, string $description = ''): void { $this->validatePattern($value, $pattern, $fieldName, $description); } public function testValidateRange(float $value, float $min, float $max, string $fieldName): void { $this->validateRange($value, $min, $max, $fieldName); } public function testValidateUri(string $value, string $fieldName): void { $this->validateUri($value, $fieldName); } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/evansims/openfga-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server