Swagger: Standardize API
swagger_standardize_apiStandardizes and fixes API definitions using AI to ensure governance compliance by scanning for errors and applying automatic fixes.
Instructions
Standardize and fix an API definition using AI to ensure compliance with governance policies. Scans the API definition for standardization errors and automatically fixes them using SmartBear AI. Optionally provide 'newVersion' (e.g. patch bump '1.0.0' → '1.0.1') to save the fixed definition as a new version — omitting it will overwrite the current version. Returns the number of errors found and the fixed definition if successful. Use this tool when users ask to standardize, fix, govern, or ensure governance compliance of APIs.
Toolset: Registry API
Parameters:
owner (string) required: API owner (organization or user, case-sensitive)
api (string) required: API name (case-sensitive)
version (string) required: Version identifier
newVersion (string): The version to save the fixed definition as (e.g. '1.0.1'). Omitting this will overwrite the current version — prefer providing a patch bump (e.g. '1.0.0' → '1.0.1') unless the user specifies otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | Yes | API name (case-sensitive) | |
| owner | Yes | API owner (organization or user, case-sensitive) | |
| version | Yes | Version identifier | |
| newVersion | No | The version to save the fixed definition as (e.g. '1.0.1'). Omitting this will overwrite the current version — prefer providing a patch bump (e.g. '1.0.0' → '1.0.1') unless the user specifies otherwise. |