Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Language is nullable #604

Merged
merged 3 commits into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading