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.
dotnet tool install -g apimsanitizer
dotnet tool install dotnet-apimsanitizer --create-manifest-if-needed
apimsanitizer -f ./your/path/to/api-definition.yml
<Target Name="GenerateApimFile" BeforeTargets="Build">
<Exec Command="dotnet apimsanitizer -f $(ProjectDir)/wwwroot/openapi.yml" />
</Target>
cd src
dotnet pack --configuration Release
dotnet tool install -g --add-source .\bin\Release apimsanitizer
apimsanitizer -f {path-to-openapi.yml}