Skip to content

Commit

Permalink
[Task] Language is nullable (#604)
Browse files Browse the repository at this point in the history
* Language is nullable

* Updating getter

* Remove required
  • Loading branch information
mattamon authored Dec 2, 2024
1 parent dfb8817 commit 6f557dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Version/Schema/CustomMetadataVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
#[Schema(
title: 'CustomMetadataVersion',
required: ['name', 'language', 'type', 'data'],
required: ['name', 'type', 'data'],
type: 'object'
)]
final readonly class CustomMetadataVersion
Expand All @@ -33,7 +33,7 @@ public function __construct(
#[Property(description: 'Name', type: 'string', example: 'custom_metadata')]
private string $name,
#[Property(description: 'Language', type: 'string', example: 'en')]
private string $language,
private ?string $language,
#[Property(description: 'Type', type: 'string', example: 'input')]
private string $type,
#[Property(description: 'Data', type: 'string', example: 'data')]
Expand All @@ -46,7 +46,7 @@ public function getName(): string
return $this->name;
}

public function getLanguage(): string
public function getLanguage(): ?string
{
return $this->language;
}
Expand Down

0 comments on commit 6f557dd

Please sign in to comment.