Skip to content

Commit

Permalink
fix multipart
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Sep 15, 2024
1 parent c5bf824 commit 673e8b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Parser/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@
use PSX\Api\Exception\ParserException;
use PSX\Api\Model\Passthru;
use PSX\Api\Operation;
use PSX\Api\Parser\Attribute\Meta;
use PSX\Api\Parser\Attribute\BuilderInterface;
use PSX\Api\Parser\Attribute\Meta;
use PSX\Api\ParserInterface;
use PSX\Api\Specification;
use PSX\Api\SpecificationInterface;
use PSX\Api\Util\Inflection;
use PSX\Data\Multipart\Body;
use PSX\DateTime\Duration;
use PSX\DateTime\LocalDate;
use PSX\DateTime\LocalDateTime;
Expand Down Expand Up @@ -369,7 +368,7 @@ private function getSchemaFromTypeHint(?\ReflectionType $type): string|ContentTy
return ContentType::BINARY;
} elseif ($type->getName() === 'string') {
return ContentType::TEXT;
} elseif ($type->getName() === Body::class) {
} elseif ($type->getName() === 'PSX\\Data\\Multipart\\Body') {
return ContentType::MULTIPART;
} elseif ($type->getName() === 'array') {
return ContentType::FORM;
Expand Down

0 comments on commit 673e8b6

Please sign in to comment.