From 7365424c3c87d51abdd4267643f93ad4720e0aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rune=20T=C3=B8mmer=C3=A5s=20Larsen?= Date: Wed, 28 Dec 2022 07:48:07 +0100 Subject: [PATCH] Fix reference (#9462) --- src/Models/ResourceRegistry/ReferenceType.cs | 20 ++++++++++++------- .../ResourceRegistry/ServiceResource.cs | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/Models/ResourceRegistry/ReferenceType.cs b/src/Models/ResourceRegistry/ReferenceType.cs index ab8b76cb..44225d9e 100644 --- a/src/Models/ResourceRegistry/ReferenceType.cs +++ b/src/Models/ResourceRegistry/ReferenceType.cs @@ -1,4 +1,4 @@ -using System.Runtime.Serialization; +using System.Runtime.Serialization; namespace Altinn.ResourceRegistry.Core.Enums { @@ -10,13 +10,19 @@ public enum ReferenceType : int [EnumMember(Value = "Default")] Default = 0, - [EnumMember(Value = "ServiceCodeVersion")] - ServiceCodeVersion = 1, + [EnumMember(Value = "Uri")] + Uri = 1, - [EnumMember(Value = "OrgApp")] - OrgApp = 2, + [EnumMember(Value = "DelegationSchemeId")] + DelegationSchemeId = 2, - [EnumMember(Value = "Uri")] - Uri = 3 + [EnumMember(Value = "MaskinportenScope")] + MaskinportenScope = 3, + + [EnumMember(Value = "ServiceCode")] + ServiceCode = 4, + + [EnumMember(Value = "ServiceEditionCode")] + ServiceEditionCode = 5, } } diff --git a/src/Models/ResourceRegistry/ServiceResource.cs b/src/Models/ResourceRegistry/ServiceResource.cs index 8499f372..ded982a3 100644 --- a/src/Models/ResourceRegistry/ServiceResource.cs +++ b/src/Models/ResourceRegistry/ServiceResource.cs @@ -69,7 +69,7 @@ public class ServiceResource /// /// ResourceReference /// - public ResourceReference? ResourceReference { get; set; } + public List ResourceReferences { get; set; } /// /// IsComplete