Skip to content

Commit

Permalink
Change data to type mixed in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Nov 29, 2024
1 parent 3f50d03 commit 66f2fc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Metadata/Schema/CustomMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(
private readonly string $language,
#[Property(description: 'Type', type: 'string', example: 'input')]
private readonly string $type,
#[Property(description: 'Data', type: 'string', example: 'data')]
#[Property(description: 'Data', type: 'mixed', example: 'data')]
private readonly mixed $data
) {
}
Expand Down
4 changes: 2 additions & 2 deletions src/Metadata/Schema/PredefinedMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#[Schema(
title: 'PredefinedMetadata',
required: ['name', 'type'],
required: ['id', 'name', 'type', 'creationDate', 'modificationDate', 'isWriteable'],
type: 'object'
)]
final class PredefinedMetadata implements AdditionalAttributesInterface
Expand All @@ -41,7 +41,7 @@ public function __construct(
private string $type,
#[Property(description: 'Target sub type', type: 'string', example: 'input')]
private ?string $targetSubType,
#[Property(description: 'Data', type: 'string', example: 'data')]
#[Property(description: 'Data', type: 'mixed', example: 'data')]
private mixed $data,
#[Property(description: 'Config', type: 'string', example: 'config')]
private ?string $config,
Expand Down

0 comments on commit 66f2fc8

Please sign in to comment.