-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add missing prefixes in Swagger TypeNameConverter exlude list (#…
…1992) <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Related Issue(s) - #1991 ## 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) Co-authored-by: Magnus Sandgren <[email protected]>
- Loading branch information
1 parent
7f8cf52
commit 88925c1
Showing
8 changed files
with
94 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/Digdir.Domain.Dialogporten.WebApi/Common/Json/ShortNameGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Digdir.Domain.Dialogporten.WebApi.Common.Swagger; | ||
using NJsonSchema.Generation; | ||
|
||
namespace Digdir.Domain.Dialogporten.WebApi.Common.Json; | ||
|
||
internal sealed class ShortNameGenerator : ISchemaNameGenerator | ||
{ | ||
public string Generate(Type type) => TypeNameConverter.ToShortName(type); | ||
} |
17 changes: 0 additions & 17 deletions
17
src/Digdir.Domain.Dialogporten.WebApi/Common/Json/SuffixedSchemaNameGenerator.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.