From 8b9cc53c9955314e16ce66feafdcfeabf2ab4536 Mon Sep 17 00:00:00 2001 From: mattamon Date: Mon, 2 Dec 2024 14:55:07 +0100 Subject: [PATCH] Updating getter --- src/Version/Schema/CustomMetadataVersion.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Version/Schema/CustomMetadataVersion.php b/src/Version/Schema/CustomMetadataVersion.php index 9dd6ce87..b1751129 100644 --- a/src/Version/Schema/CustomMetadataVersion.php +++ b/src/Version/Schema/CustomMetadataVersion.php @@ -24,7 +24,7 @@ */ #[Schema( title: 'CustomMetadataVersion', - required: ['name', 'type', 'data'], + required: ['name', 'language', 'type', 'data'], type: 'object' )] final readonly class CustomMetadataVersion @@ -32,7 +32,7 @@ public function __construct( #[Property(description: 'Name', type: 'string', example: 'custom_metadata')] private string $name, - #[Property(description: 'Language', type: 'string', example: 'en', nullable: true)] + #[Property(description: 'Language', type: 'string', example: 'en')] private ?string $language, #[Property(description: 'Type', type: 'string', example: 'input')] private string $type, @@ -46,7 +46,7 @@ public function getName(): string return $this->name; } - public function getLanguage(): string + public function getLanguage(): ?string { return $this->language; }