diff --git a/src/Altinn.App.Core/Models/Logo.cs b/src/Altinn.App.Core/Models/Logo.cs index f10846d53..66e03cd87 100644 --- a/src/Altinn.App.Core/Models/Logo.cs +++ b/src/Altinn.App.Core/Models/Logo.cs @@ -21,5 +21,11 @@ public class Logo [JsonProperty(PropertyName = "source")] public string? Source { get; set; } + /// + /// Specifies the size of the logo. Can have the values + /// 'small', 'medium', or 'large' + /// + [JsonProperty(PropertyName = "size")] + public string Size { get; set; } = "small"; } } diff --git a/test/Altinn.App.Core.Tests/Internal/App/AppMedataTest.cs b/test/Altinn.App.Core.Tests/Internal/App/AppMedataTest.cs index e9f9b191c..140da41e2 100644 --- a/test/Altinn.App.Core.Tests/Internal/App/AppMedataTest.cs +++ b/test/Altinn.App.Core.Tests/Internal/App/AppMedataTest.cs @@ -451,7 +451,8 @@ public async Task GetApplicationMetadata_logo_can_intstantiate_with_source_and_D Logo = new Logo { Source = "org", - DisplayAppOwnerNameInHeader = true + DisplayAppOwnerNameInHeader = true, + Size = "medium" }, Features = enabledFrontendFeatures }; diff --git a/test/Altinn.App.Core.Tests/Internal/App/TestData/AppMetadata/logo-org-source.applicationmetadata.json b/test/Altinn.App.Core.Tests/Internal/App/TestData/AppMetadata/logo-org-source.applicationmetadata.json index 8a6c34aff..a9782fe64 100644 --- a/test/Altinn.App.Core.Tests/Internal/App/TestData/AppMetadata/logo-org-source.applicationmetadata.json +++ b/test/Altinn.App.Core.Tests/Internal/App/TestData/AppMetadata/logo-org-source.applicationmetadata.json @@ -35,6 +35,7 @@ }, "logo": { "displayAppOwnerNameInHeader": true, - "source": "org" + "source": "org", + "size": "medium" } }