https://github.com/pregress/apimsanitizer
Tool that helps to sanitize open api defintion files to import them into Azure APIM
https://github.com/pregress/apimsanitizer
api-management azure dotnet-tool dotnet-tools
Last synced: 8 months ago
JSON representation
Tool that helps to sanitize open api defintion files to import them into Azure APIM
- Host: GitHub
- URL: https://github.com/pregress/apimsanitizer
- Owner: pregress
- License: mit
- Created: 2024-10-01T07:42:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-19T12:46:14.000Z (about 1 year ago)
- Last Synced: 2025-10-03T04:21:38.587Z (8 months ago)
- Topics: api-management, azure, dotnet-tool, dotnet-tools
- Language: C#
- Homepage:
- Size: 312 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ApimSanitizer
Tool that helps to sanitize open api defintion files to import them into Azure APIM.
This is to bypass the [limits](https://learn.microsoft.com/en-us/azure/api-management/api-management-api-import-restrictions#unsupported) of api management.
Currenlty only removes [links](https://swagger.io/docs/specification/v3_0/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
```(xml)
```
## Local testing
```
cd src
dotnet pack --configuration Release
dotnet tool install -g --add-source .\bin\Release apimsanitizer
apimsanitizer -f {path-to-openapi.yml}
```