Skip to content

Commit

Permalink
fix(webapi): Set correct swagger return type for transmission list (#…
Browse files Browse the repository at this point in the history
…1590)

<!--- Provide a general summary of your changes in the Title above -->

## Description

<!--- Describe your changes in detail -->

## Related Issue(s)

- #1589 

## 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)
  • Loading branch information
oskogstad authored Dec 11, 2024
1 parent e624fef commit 6e88e0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/schema/V1/swagger.verified.json
Original file line number Diff line number Diff line change
Expand Up @@ -6747,7 +6747,10 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/V1ServiceOwnerDialogTransmissionsQueriesSearch_Transmission"
"items": {
"$ref": "#/components/schemas/V1ServiceOwnerDialogTransmissionsQueriesSearch_Transmission"
},
"type": "array"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public override void Configure()
Policies(AuthorizationPolicy.ServiceProvider);
Group<ServiceOwnerGroup>();

Description(b => b.ProducesOneOf<TransmissionDto>(
Description(b => b.ProducesOneOf<List<TransmissionDto>>(
StatusCodes.Status200OK,
StatusCodes.Status404NotFound,
StatusCodes.Status410Gone));
Expand Down

0 comments on commit 6e88e0c

Please sign in to comment.