parse-swagger-optimized
Parse Swagger/OpenAPI documents with caching, large document support, and options for schema filtering, lazy loading, and validation control. Ideal for generating API client code and TypeScript types.
Instructions
Parse Swagger/OpenAPI document using optimized parser with caching and large document support.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cacheTTLMinutes | No | Cache TTL in minutes | |
filterTag | No | Filter operations by tag | |
headers | No | Request headers | |
includeDetails | No | Whether to include all details like request bodies, responses, etc. | |
includeSchemas | No | Whether to include schema definitions | |
lazyLoading | No | Whether to use lazy loading for schema parsing | |
pathPrefix | No | Filter operations by path prefix | |
skipValidation | No | Whether to skip validation, used for handling non-fully compliant API documents | |
url | Yes | Swagger/OpenAPI document URL | |
useCache | No | Whether to use cache |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"cacheTTLMinutes": {
"description": "Cache TTL in minutes",
"type": "number"
},
"filterTag": {
"description": "Filter operations by tag",
"type": "string"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"description": "Request headers",
"type": "object"
},
"includeDetails": {
"description": "Whether to include all details like request bodies, responses, etc.",
"type": "boolean"
},
"includeSchemas": {
"description": "Whether to include schema definitions",
"type": "boolean"
},
"lazyLoading": {
"description": "Whether to use lazy loading for schema parsing",
"type": "boolean"
},
"pathPrefix": {
"description": "Filter operations by path prefix",
"type": "string"
},
"skipValidation": {
"description": "Whether to skip validation, used for handling non-fully compliant API documents",
"type": "boolean"
},
"url": {
"description": "Swagger/OpenAPI document URL",
"type": "string"
},
"useCache": {
"description": "Whether to use cache",
"type": "boolean"
}
},
"required": [
"url"
],
"type": "object"
}