From ba0b8e01394434beb2035474b6ea8e74f18eb0ab Mon Sep 17 00:00:00 2001 From: Melvin Lee Date: Tue, 19 Nov 2024 15:31:11 +0100 Subject: [PATCH] chore(api): refactoring tbv gebruik Brp.Shared.DtoMappers --- specificatie/data-service/openapi.yaml | 32 +++++++-------- specificatie/informatie-service/openapi.yaml | 41 ++++++++++--------- src/Bewoning.Data.Mock/Generated/Generated.cs | 20 +++++---- .../DataTransferObjects.cs | 19 +++++++++ .../DataTransferObjects.nswag | 17 ++++---- .../GbaDataTransferObjects.cs | 38 +++++++---------- .../GbaDataTransferObjects.nswag | 15 ++++--- .../Generated/GbaAdellijkeTitelPartial.cs | 7 ---- .../Generated/GbaNaamPartial.cs | 2 +- .../Generated/GeboorteBasis.cs | 23 ----------- .../Profiles/GeboorteProfile.cs | 2 +- .../Profiles/NaamProfile.cs | 2 +- .../BrpDtos/GeneratedDataTransferObjects.cs | 3 +- .../IAdellijkeTitelPredicaatType.cs | 10 ----- .../Interfaces/INaamBasis.cs | 2 +- 15 files changed, 106 insertions(+), 127 deletions(-) delete mode 100644 src/Bewoning.Informatie.Service/Generated/GbaAdellijkeTitelPartial.cs delete mode 100644 src/Bewoning.Informatie.Service/Generated/GeboorteBasis.cs delete mode 100644 src/Brp.Shared.DtoMappers/Interfaces/IAdellijkeTitelPredicaatType.cs diff --git a/specificatie/data-service/openapi.yaml b/specificatie/data-service/openapi.yaml index 0ea01e1..abc552b 100644 --- a/specificatie/data-service/openapi.yaml +++ b/specificatie/data-service/openapi.yaml @@ -224,15 +224,20 @@ components: example: '6030' omschrijving: type: string - pattern: ^[a-zA-Z0-9À-ž \'\,\(\)\.\-]{1,200}$ + pattern: ^[a-zA-Z0-9À-ž \'\.\-\(\),]{1,200}$ example: Nederland + Geslachtsaanduiding: + allOf: + - $ref: '#/components/schemas/Waardetabel' + - example: + code: M + omschrijving: man Voornamen: + description: | + De verzameling namen voor de geslachtsnaam, gescheiden door spaties. type: string pattern: ^[a-zA-Z0-9À-ž \.\-\']{1,200}$ maxLength: 200 - description: | - De verzameling namen voor de geslachtsnaam, gescheiden door spaties. - example: Pieter Jan AdellijkeTitelPredicaatSoort: type: string enum: @@ -247,8 +252,8 @@ components: soort: $ref: '#/components/schemas/AdellijkeTitelPredicaatSoort' example: - code: JH - omschrijving: jonkheer + code: JV + omschrijving: jonkvrouw soort: predicaat Voorvoegsel: type: string @@ -261,7 +266,7 @@ components: description: | De achternaam van een persoon. example: Vries - GbaNaamBasis: + NaamBasis: type: object properties: voornamen: @@ -272,16 +277,11 @@ components: $ref: '#/components/schemas/Voorvoegsel' geslachtsnaam: $ref: '#/components/schemas/Geslachtsnaam' - GbaNaam: - allOf: - - $ref: '#/components/schemas/GbaNaamBasis' - GbaGeboorte: + GeboorteBasis: type: object properties: datum: $ref: '#/components/schemas/GbaDatum' - description: | - Datum waarop de persoon is geboren. GbaBewoner: type: object properties: @@ -292,11 +292,11 @@ components: verblijfplaatsInOnderzoek: $ref: '#/components/schemas/GbaInOnderzoek' geslacht: - $ref: '#/components/schemas/Waardetabel' + $ref: '#/components/schemas/Geslachtsaanduiding' naam: - $ref: '#/components/schemas/GbaNaam' + $ref: '#/components/schemas/NaamBasis' geboorte: - $ref: '#/components/schemas/GbaGeboorte' + $ref: '#/components/schemas/GeboorteBasis' GbaBewoning: description: | Een bewoning geeft aan welke personen in een periode (mogelijk) op een adresseerbaar object staan ingeschreven. diff --git a/specificatie/informatie-service/openapi.yaml b/specificatie/informatie-service/openapi.yaml index 8701469..d53ba10 100644 --- a/specificatie/informatie-service/openapi.yaml +++ b/specificatie/informatie-service/openapi.yaml @@ -243,6 +243,9 @@ components: $ref: '#/components/schemas/VolledigeNaam' AbstractDatum: type: object + required: + - type + - langFormaat properties: type: type: string @@ -256,6 +259,10 @@ components: DatumOnbekend: '#/components/schemas/DatumOnbekend' JaarDatum: '#/components/schemas/JaarDatum' JaarMaandDatum: '#/components/schemas/JaarMaandDatum' + example: + type: Datum + datum: '2018-07-01' + langFormaat: 1 juli 2018 VolledigeDatum: description: Datum conform iso8601 allOf: @@ -265,11 +272,12 @@ components: datum: type: string format: date + required: + - datum example: - value: - type: Datum - datum: '2018-07-01' - langFormaat: 1 juli 2018 + type: Datum + datum: '2018-07-01' + langFormaat: 1 juli 2018 DatumOnbekend: description: representatie voor een volledig onbekend datum allOf: @@ -282,10 +290,9 @@ components: required: - onbekend example: - value: - type: DatumOnbekend - onbekend: true - langFormaat: onbekend + type: DatumOnbekend + onbekend: true + langFormaat: onbekend Jaar: type: integer format: int32 @@ -302,10 +309,9 @@ components: required: - jaar example: - value: - type: JaarDatum - jaar: 2018 - langFormaat: 2018 + type: JaarDatum + jaar: 2018 + langFormaat: 2018 Maand: type: integer format: int32 @@ -325,18 +331,15 @@ components: - jaar - maand example: - value: - type: JaarMaandDatum - jaar: 2018 - maand: 7 - langFormaat: juli 2018 + type: JaarMaandDatum + jaar: 2018 + maand: 7 + langFormaat: juli 2018 GeboorteBasis: type: object properties: datum: $ref: '#/components/schemas/AbstractDatum' - description: | - Datum waarop de persoon is geboren. Bewoner: type: object properties: diff --git a/src/Bewoning.Data.Mock/Generated/Generated.cs b/src/Bewoning.Data.Mock/Generated/Generated.cs index f40ea67..ad016d4 100644 --- a/src/Bewoning.Data.Mock/Generated/Generated.cs +++ b/src/Bewoning.Data.Mock/Generated/Generated.cs @@ -193,6 +193,12 @@ public System.Collections.Generic.IDictionary AdditionalProperti } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class Geslachtsaanduiding : Waardetabel + { + + } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] public enum AdellijkeTitelPredicaatSoort { @@ -219,7 +225,7 @@ public partial class AdellijkeTitelPredicaatType : Waardetabel } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] - public partial class GbaNaamBasis + public partial class NaamBasis { [Newtonsoft.Json.JsonProperty("voornamen", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Voornamen { get; set; } @@ -245,12 +251,8 @@ public System.Collections.Generic.IDictionary AdditionalProperti } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] - public partial class GbaGeboorte + public partial class GeboorteBasis { - /// - /// Datum waarop de persoon is geboren. - ///
- ///
[Newtonsoft.Json.JsonProperty("datum", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Datum { get; set; } @@ -278,13 +280,13 @@ public partial class GbaBewoner public GbaInOnderzoek VerblijfplaatsInOnderzoek { get; set; } [Newtonsoft.Json.JsonProperty("geslacht", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public Waardetabel Geslacht { get; set; } + public Geslachtsaanduiding Geslacht { get; set; } [Newtonsoft.Json.JsonProperty("naam", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public GbaNaamBasis Naam { get; set; } + public NaamBasis Naam { get; set; } [Newtonsoft.Json.JsonProperty("geboorte", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public GbaGeboorte Geboorte { get; set; } + public GeboorteBasis Geboorte { get; set; } private System.Collections.Generic.IDictionary _additionalProperties; diff --git a/src/Bewoning.Informatie.Service/DataTransferObjects.cs b/src/Bewoning.Informatie.Service/DataTransferObjects.cs index 26b1260..5f5dc62 100644 --- a/src/Bewoning.Informatie.Service/DataTransferObjects.cs +++ b/src/Bewoning.Informatie.Service/DataTransferObjects.cs @@ -4,6 +4,8 @@ // //---------------------- +using Brp.Shared.DtoMappers.BrpApiDtos; + #pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended." #pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword." #pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?' @@ -98,6 +100,23 @@ public System.Collections.Generic.IDictionary AdditionalProperti } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class GeboorteBasis + { + [Newtonsoft.Json.JsonProperty("datum", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public AbstractDatum Datum { get; set; } + + private System.Collections.Generic.IDictionary _additionalProperties; + + [Newtonsoft.Json.JsonExtensionData] + public System.Collections.Generic.IDictionary AdditionalProperties + { + get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary()); } + set { _additionalProperties = value; } + } + + } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] public partial class Bewoner { diff --git a/src/Bewoning.Informatie.Service/DataTransferObjects.nswag b/src/Bewoning.Informatie.Service/DataTransferObjects.nswag index 18e6aa3..0c9401c 100644 --- a/src/Bewoning.Informatie.Service/DataTransferObjects.nswag +++ b/src/Bewoning.Informatie.Service/DataTransferObjects.nswag @@ -13,7 +13,9 @@ "clientBaseClass": null, "configurationClass": null, "generateClientClasses": false, + "suppressClientClassesOutput": false, "generateClientInterfaces": false, + "suppressClientInterfacesOutput": false, "clientBaseInterface": null, "injectHttpClient": true, "disposeHttpClient": true, @@ -31,6 +33,8 @@ "exposeJsonSerializerSettings": false, "clientClassAccessModifier": "public", "typeAccessModifier": "public", + "propertySetterAccessModifier": "", + "generateNativeRecords": false, "generateContractsOutput": false, "contractsNamespace": null, "contractsOutputFilePath": null, @@ -42,7 +46,9 @@ "queryNullValue": "", "className": "{controller}Client", "operationGenerationMode": "MultipleClientsFromOperationId", - "additionalNamespaceUsages": [], + "additionalNamespaceUsages": [ + "Brp.Shared.DtoMappers.BrpApiDtos" + ], "additionalContractNamespaceUsages": [], "generateOptionalParameters": false, "generateJsonMethods": false, @@ -79,14 +85,12 @@ "BadRequestFoutbericht", "BewoningMetPeildatum", "BewoningMetPeriode", - "Geslachtsaanduiding", - "VolledigeNaam", - "VolledigeDatum", "AbstractDatum", + "VolledigeDatum", "DatumOnbekend", "JaarDatum", "JaarMaandDatum", - "GeboorteBasis" + "AdellijkeTitelPredicaatType" ], "excludedParameterNames": [], "handleReferences": false, @@ -101,9 +105,6 @@ "generateOptionalPropertiesAsNullable": true, "generateNullableReferenceTypes": false, "templateDirectory": null, - "typeNameGeneratorType": null, - "propertyNameGeneratorType": null, - "enumNameGeneratorType": null, "serviceHost": null, "serviceSchemes": null, "output": "DataTransferObjects.cs", diff --git a/src/Bewoning.Informatie.Service/GbaDataTransferObjects.cs b/src/Bewoning.Informatie.Service/GbaDataTransferObjects.cs index 8d54ed7..27bebab 100644 --- a/src/Bewoning.Informatie.Service/GbaDataTransferObjects.cs +++ b/src/Bewoning.Informatie.Service/GbaDataTransferObjects.cs @@ -4,6 +4,8 @@ // //---------------------- +using Brp.Shared.DtoMappers.BrpDtos; + #pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended." #pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword." #pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?' @@ -20,7 +22,6 @@ namespace Bewoning.Informatie.Service.Generated.Gba { - using Brp.Shared.DtoMappers.Interfaces; using System = global::System; @@ -203,6 +204,12 @@ public System.Collections.Generic.IDictionary AdditionalProperti } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class Geslachtsaanduiding : Waardetabel + { + + } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] public enum AdellijkeTitelPredicaatSoort { @@ -215,27 +222,14 @@ public enum AdellijkeTitelPredicaatSoort } - /// - /// Wordt gevuld met waarden uit de landelijke tabel 'Adellijke titel/predicaat'. De property soort geeft aan of het een 'predicaat' of een 'titel' is. - ///
- ///
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] - public partial class AdellijkeTitelPredicaatType : Waardetabel - { - [Newtonsoft.Json.JsonProperty("soort", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] - public AdellijkeTitelPredicaatSoort? Soort { get; set; } - - } - - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] - public partial class GbaNaamBasis + public partial class NaamBasis { [Newtonsoft.Json.JsonProperty("voornamen", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Voornamen { get; set; } [Newtonsoft.Json.JsonProperty("adellijkeTitelPredicaat", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public IAdellijkeTitelPredicaatType AdellijkeTitelPredicaat { get; set; } + public AdellijkeTitelPredicaatType AdellijkeTitelPredicaat { get; set; } [Newtonsoft.Json.JsonProperty("voorvoegsel", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Voorvoegsel { get; set; } @@ -255,12 +249,8 @@ public System.Collections.Generic.IDictionary AdditionalProperti } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] - public partial class GbaGeboorte + public partial class GeboorteBasis { - /// - /// Datum waarop de persoon is geboren. - ///
- ///
[Newtonsoft.Json.JsonProperty("datum", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Datum { get; set; } @@ -288,13 +278,13 @@ public partial class GbaBewoner public GbaInOnderzoek VerblijfplaatsInOnderzoek { get; set; } [Newtonsoft.Json.JsonProperty("geslacht", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public Waardetabel Geslacht { get; set; } + public Geslachtsaanduiding Geslacht { get; set; } [Newtonsoft.Json.JsonProperty("naam", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public GbaNaamBasis Naam { get; set; } + public NaamBasis Naam { get; set; } [Newtonsoft.Json.JsonProperty("geboorte", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public GbaGeboorte Geboorte { get; set; } + public GeboorteBasis Geboorte { get; set; } private System.Collections.Generic.IDictionary _additionalProperties; diff --git a/src/Bewoning.Informatie.Service/GbaDataTransferObjects.nswag b/src/Bewoning.Informatie.Service/GbaDataTransferObjects.nswag index ee02812..a123bb2 100644 --- a/src/Bewoning.Informatie.Service/GbaDataTransferObjects.nswag +++ b/src/Bewoning.Informatie.Service/GbaDataTransferObjects.nswag @@ -13,7 +13,9 @@ "clientBaseClass": null, "configurationClass": null, "generateClientClasses": false, + "suppressClientClassesOutput": false, "generateClientInterfaces": false, + "suppressClientInterfacesOutput": false, "clientBaseInterface": null, "injectHttpClient": true, "disposeHttpClient": true, @@ -31,6 +33,8 @@ "exposeJsonSerializerSettings": false, "clientClassAccessModifier": "public", "typeAccessModifier": "public", + "propertySetterAccessModifier": "", + "generateNativeRecords": false, "generateContractsOutput": false, "contractsNamespace": null, "contractsOutputFilePath": null, @@ -42,7 +46,9 @@ "queryNullValue": "", "className": "{controller}Client", "operationGenerationMode": "MultipleClientsFromOperationId", - "additionalNamespaceUsages": [], + "additionalNamespaceUsages": [ + "Brp.Shared.DtoMappers.BrpDtos" + ], "additionalContractNamespaceUsages": [], "generateOptionalParameters": false, "generateJsonMethods": false, @@ -73,7 +79,9 @@ "jsonLibrary": "NewtonsoftJson", "generateDefaultValues": true, "generateDataAnnotations": false, - "excludedTypeNames": [], + "excludedTypeNames": [ + "AdellijkeTitelPredicaatType" + ], "excludedParameterNames": [], "handleReferences": false, "generateImmutableArrayProperties": false, @@ -87,9 +95,6 @@ "generateOptionalPropertiesAsNullable": true, "generateNullableReferenceTypes": false, "templateDirectory": null, - "typeNameGeneratorType": null, - "propertyNameGeneratorType": null, - "enumNameGeneratorType": null, "serviceHost": null, "serviceSchemes": null, "output": "GbaDataTransferObjects.cs", diff --git a/src/Bewoning.Informatie.Service/Generated/GbaAdellijkeTitelPartial.cs b/src/Bewoning.Informatie.Service/Generated/GbaAdellijkeTitelPartial.cs deleted file mode 100644 index 758dd59..0000000 --- a/src/Bewoning.Informatie.Service/Generated/GbaAdellijkeTitelPartial.cs +++ /dev/null @@ -1,7 +0,0 @@ -using Brp.Shared.DtoMappers.Interfaces; - -namespace Bewoning.Informatie.Service.Generated.Gba; - -public partial class AdellijkeTitelPredicaatType : IAdellijkeTitelPredicaatType -{ -} diff --git a/src/Bewoning.Informatie.Service/Generated/GbaNaamPartial.cs b/src/Bewoning.Informatie.Service/Generated/GbaNaamPartial.cs index 6b8b7a9..4ecc77d 100644 --- a/src/Bewoning.Informatie.Service/Generated/GbaNaamPartial.cs +++ b/src/Bewoning.Informatie.Service/Generated/GbaNaamPartial.cs @@ -2,6 +2,6 @@ namespace Bewoning.Informatie.Service.Generated.Gba; -public partial class GbaNaamBasis : INaamBasis +public partial class NaamBasis : INaamBasis { } diff --git a/src/Bewoning.Informatie.Service/Generated/GeboorteBasis.cs b/src/Bewoning.Informatie.Service/Generated/GeboorteBasis.cs deleted file mode 100644 index da91c73..0000000 --- a/src/Bewoning.Informatie.Service/Generated/GeboorteBasis.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Brp.Shared.DtoMappers.BrpApiDtos; - -namespace Bewoning.Informatie.Service.Generated; - - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")] - public partial class GeboorteBasis - { - /// - /// Datum waarop de persoon is geboren. - ///
- ///
- [Newtonsoft.Json.JsonProperty("datum", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public AbstractDatum Datum { get; set; } - - private System.Collections.Generic.IDictionary _additionalProperties; - - [Newtonsoft.Json.JsonExtensionData] - public System.Collections.Generic.IDictionary AdditionalProperties - { - get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary()); } - set { _additionalProperties = value; } - } - } diff --git a/src/Bewoning.Informatie.Service/Profiles/GeboorteProfile.cs b/src/Bewoning.Informatie.Service/Profiles/GeboorteProfile.cs index 3b325cd..b9e2ecb 100644 --- a/src/Bewoning.Informatie.Service/Profiles/GeboorteProfile.cs +++ b/src/Bewoning.Informatie.Service/Profiles/GeboorteProfile.cs @@ -8,7 +8,7 @@ public class GeboorteProfile : Profile { public GeboorteProfile() { - CreateMap() + CreateMap() .ForMember(dest => dest.Datum, opt => { opt.PreCondition(src => src.Datum != null); diff --git a/src/Bewoning.Informatie.Service/Profiles/NaamProfile.cs b/src/Bewoning.Informatie.Service/Profiles/NaamProfile.cs index b81e4aa..edcc37a 100644 --- a/src/Bewoning.Informatie.Service/Profiles/NaamProfile.cs +++ b/src/Bewoning.Informatie.Service/Profiles/NaamProfile.cs @@ -8,6 +8,6 @@ public class NaamProfile : Profile { public NaamProfile() { - CreateMap(); + CreateMap(); } } diff --git a/src/Brp.Shared.DtoMappers/BrpDtos/GeneratedDataTransferObjects.cs b/src/Brp.Shared.DtoMappers/BrpDtos/GeneratedDataTransferObjects.cs index 500a008..29e895d 100644 --- a/src/Brp.Shared.DtoMappers/BrpDtos/GeneratedDataTransferObjects.cs +++ b/src/Brp.Shared.DtoMappers/BrpDtos/GeneratedDataTransferObjects.cs @@ -20,7 +20,6 @@ namespace Brp.Shared.DtoMappers.BrpDtos { - using Brp.Shared.DtoMappers.Interfaces; using System = global::System; @@ -122,7 +121,7 @@ public partial class NaamBasis public string Voornamen { get; set; } [Newtonsoft.Json.JsonProperty("adellijkeTitelPredicaat", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public IAdellijkeTitelPredicaatType AdellijkeTitelPredicaat { get; set; } + public AdellijkeTitelPredicaatType AdellijkeTitelPredicaat { get; set; } [Newtonsoft.Json.JsonProperty("voorvoegsel", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.StringLength(10)] diff --git a/src/Brp.Shared.DtoMappers/Interfaces/IAdellijkeTitelPredicaatType.cs b/src/Brp.Shared.DtoMappers/Interfaces/IAdellijkeTitelPredicaatType.cs deleted file mode 100644 index 3f5a0ce..0000000 --- a/src/Brp.Shared.DtoMappers/Interfaces/IAdellijkeTitelPredicaatType.cs +++ /dev/null @@ -1,10 +0,0 @@ - -using Brp.Shared.DtoMappers.BrpDtos; - -namespace Brp.Shared.DtoMappers.Interfaces -{ - public interface IAdellijkeTitelPredicaatType : IWaardetabel - { - AdellijkeTitelPredicaatSoort Soort { get; } - } -} diff --git a/src/Brp.Shared.DtoMappers/Interfaces/INaamBasis.cs b/src/Brp.Shared.DtoMappers/Interfaces/INaamBasis.cs index 3c6f1bc..cf587b5 100644 --- a/src/Brp.Shared.DtoMappers/Interfaces/INaamBasis.cs +++ b/src/Brp.Shared.DtoMappers/Interfaces/INaamBasis.cs @@ -2,7 +2,7 @@ public interface INaamBasis { - IAdellijkeTitelPredicaatType AdellijkeTitelPredicaat { get; } + BrpDtos.AdellijkeTitelPredicaatType AdellijkeTitelPredicaat { get; } string Voornamen { get; } string Voorvoegsel { get; } string Geslachtsnaam { get; }