Skip to content

Tool that helps to sanitize open api defintion files to import them into Azure APIM

License

Notifications You must be signed in to change notification settings

pregress/ApimSanitizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApimSanitizer

Tool that helps to sanitize open api defintion files to import them into Azure APIM. This is to bypass the limits of api management.

Currenlty only removes links from the definition.

Install

Global

dotnet tool install -g apimsanitizer

In project

dotnet tool install dotnet-apimsanitizer --create-manifest-if-needed

Usage

CLI

apimsanitizer -f ./your/path/to/api-definition.yml

PreBuild target in csproj

<Target Name="GenerateApimFile" BeforeTargets="Build">
    <Exec Command="dotnet apimsanitizer -f $(ProjectDir)/wwwroot/openapi.yml" />
</Target>

Local testing

cd src
dotnet pack --configuration Release
dotnet tool install -g --add-source .\bin\Release apimsanitizer

apimsanitizer -f {path-to-openapi.yml}

About

Tool that helps to sanitize open api defintion files to import them into Azure APIM

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages