Skip to content

Commit

Permalink
chore: Exclude Microsoft.AspNetCore namespace from swagger (#1414)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description

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

## Related Issue(s)

- #{issue number}

## 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 new schemas for dialog and transmission management,
enhancing the API's capabilities.
- **Improvements**
	- Renamed existing schemas for better clarity and organization.
- Updated API documentation to accurately reflect current
implementation.
- **Bug Fixes**
- Adjusted references in the schema to ensure correct paths for newly
named components.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Amund Myrbostad <amund.myrbostad@digdir.no>
  • Loading branch information
Fargekritt and Fargekritt authored Nov 11, 2024
1 parent a1e89fb commit 7f84176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/schema/V1/swagger.verified.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"CONNECT"
]
},
"MicrosoftAspNetCoreJsonPatchOperations_Operation": {
"JsonPatchOperations_Operation": {
"additionalProperties": false,
"properties": {
"from": {
Expand All @@ -158,7 +158,7 @@
"type": "string"
},
"operationType": {
"$ref": "#/components/schemas/MicrosoftAspNetCoreJsonPatchOperations_OperationType"
"$ref": "#/components/schemas/JsonPatchOperations_OperationType"
},
"path": {
"nullable": true,
Expand All @@ -170,7 +170,7 @@
},
"type": "object"
},
"MicrosoftAspNetCoreJsonPatchOperations_OperationType": {
"JsonPatchOperations_OperationType": {
"description": "",
"enum": [
"Add",
Expand Down Expand Up @@ -6048,7 +6048,7 @@
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/MicrosoftAspNetCoreJsonPatchOperations_Operation"
"$ref": "#/components/schemas/JsonPatchOperations_Operation"
},
"type": "array"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ internal static class TypeNameConverter
"FastEndpoints",
"Digdir.Domain.Dialogporten.Domain.",
"Digdir.Domain.Dialogporten.WebApi.Endpoints.",
"Digdir.Domain.Dialogporten.Application.Features."
"Digdir.Domain.Dialogporten.Application.Features.",
"Microsoft.AspNetCore."
];

internal static string ToShortName(Type type)
Expand Down

0 comments on commit 7f84176

Please sign in to comment.