Skip to content

Commit

Permalink
attribute metadata kinda hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Błajek committed Oct 9, 2024
1 parent 477394c commit 59ccb01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Resources/AttributeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Models\Attribute;
use App\Models\Enums\AttributeRequirementLevel;
use App\Models\UuidEnum\AttributeUuidEnum;
use OpenApi\Attributes as OA;
use Illuminate\Support\Str;

Expand Down Expand Up @@ -57,6 +58,9 @@ protected static function getMappedFields(): array
'isMultiValue' => true,
'requirementLevel' => true,
'description' => true,
// documents links
'metadata' => fn(self $attribute) => ($attribute->id === 'e1c14100-070d-4213-8927-6b7aed9617a4')
? ['isMultiLine' => false] : null,
];
}
}

0 comments on commit 59ccb01

Please sign in to comment.