Skip to content

Commit

Permalink
Added specified by
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax committed May 31, 2021
1 parent 96d82ac commit 89562c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/UploadType.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ final class UploadType extends \Graphpinator\Type\ScalarType
By GraphQL viewpoint it is scalar type, but it must be used as input only.;
NOWDOC;

public function __construct()
{
parent::__construct();

$this->setSpecifiedBy('https://github.com/jaydenseric/graphql-multipart-request-spec');
}

public function validateNonNullValue(mixed $rawValue) : bool
{
return $rawValue instanceof \Psr\Http\Message\UploadedFileInterface;
Expand Down

0 comments on commit 89562c0

Please sign in to comment.