diff --git a/src/Version/Schema/CustomMetadataVersion.php b/src/Version/Schema/CustomMetadataVersion.php index fee45c17..18bb8ff0 100644 --- a/src/Version/Schema/CustomMetadataVersion.php +++ b/src/Version/Schema/CustomMetadataVersion.php @@ -24,7 +24,7 @@ */ #[Schema( title: 'CustomMetadataVersion', - required: ['name', 'language', 'type', 'data'], + required: ['name', 'type', 'data'], type: 'object' )] final readonly class CustomMetadataVersion @@ -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')] @@ -46,7 +46,7 @@ public function getName(): string return $this->name; } - public function getLanguage(): string + public function getLanguage(): ?string { return $this->language; }