Skip to content

Commit 431fe16

Browse files
authored
feat(webapi): Add ExternalReference to dialog search result (#1384)
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Related Issue(s) - #1376 ## Verification - [ ] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced an `externalReference` property in the dialog schema, enhancing metadata for better integration with external systems. - Added an `ExternalReference` property in the `DialogDtoBase` class for service-specific references to external systems. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 4be1e53 commit 431fe16

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

docs/schema/V1/swagger.verified.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,11 @@
13371337
"nullable": true,
13381338
"type": "string"
13391339
},
1340+
"externalReference": {
1341+
"description": "Arbitrary string with a service-specific reference to an external system or service.\n \nRefer to the service-specific documentation provided by the service owner for details (if in use).",
1342+
"nullable": true,
1343+
"type": "string"
1344+
},
13401345
"guiAttachmentCount": {
13411346
"description": "The number of attachments in the dialog made available for browser-based frontends.",
13421347
"format": "int32",
@@ -4352,6 +4357,11 @@
43524357
"nullable": true,
43534358
"type": "string"
43544359
},
4360+
"externalReference": {
4361+
"description": "Arbitrary string with a service-specific reference to an external system or service.\n \nRefer to the service-specific documentation provided by the service owner for details (if in use).",
4362+
"nullable": true,
4363+
"type": "string"
4364+
},
43554365
"guiAttachmentCount": {
43564366
"description": "The number of attachments in the dialog made available for browser-based frontends.",
43574367
"format": "int32",
@@ -7445,4 +7455,4 @@
74457455
"url": "https://altinn-dev-api.azure-api.net/dialogporten"
74467456
}
74477457
]
7448-
}
7458+
}

src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/DialogDtoBase.cs

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public class DialogDtoBase
7171
/// </summary>
7272
public string? ExtendedStatus { get; set; }
7373

74+
/// <summary>
75+
/// Arbitrary string with a service-specific reference to an external system or service.
76+
///
77+
/// Refer to the service-specific documentation provided by the service owner for details (if in use).
78+
/// </summary>
79+
public string? ExternalReference { get; set; }
80+
7481
/// <summary>
7582
/// The date and time when the dialog was created.
7683
/// </summary>

src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/DialogDtoBase.cs

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ public class DialogDtoBase
7777
/// </summary>
7878
public string? ExtendedStatus { get; set; }
7979

80+
/// <summary>
81+
/// Arbitrary string with a service-specific reference to an external system or service.
82+
///
83+
/// Refer to the service-specific documentation provided by the service owner for details (if in use).
84+
/// </summary>
85+
public string? ExternalReference { get; set; }
86+
8087
/// <summary>
8188
/// The date and time when the dialog was created.
8289
/// </summary>

0 commit comments

Comments
 (0)