diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e596e6..339bb98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.15.0] - Unreleased +### Changed: + +- Snippets: `devproxy-plugin-open-api-spec-generator` - OpenApiSpecGeneratorPlugin config section + ## [0.14.0] - 2024-11-27 ### Added: diff --git a/README.md b/README.md index 6ee431e..25032d4 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ Shown when the active document is a Dev Proxy configuration file | `devproxy-plugin-graph-odsp-search-guidance` | ODSPSearchGuidancePlugin instance | | `devproxy-plugin-openai-mock-response` | OpenAIMockResponsePlugin instance | | `devproxy-plugin-open-api-spec-generator` | OpenApiSpecGeneratorPlugin instance | +| `devproxy-plugin-open-api-spec-generator-config` | OpenApiSpecGeneratorPlugin config section | | `devproxy-plugin-rate-limiting` | MockResponsePlugin instance | | `devproxy-plugin-rate-limiting-config` | RateLimitingPlugin config section | | `devproxy-plugin-rate-limiting-file` | Dev Proxy rate limiting file | diff --git a/src/constants.ts b/src/constants.ts index 7b60102..3ce8d7d 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -148,7 +148,11 @@ export const pluginSnippets: PluginSnippets = { instance: 'devproxy-plugin-openai-mock-response', }, OpenApiSpecGeneratorPlugin: { - instance: 'devproxy-plugin-openapi-doc-generator', + instance: 'devproxy-plugin-open-api-spec-generator', + config: { + name: 'devproxy-plugin-open-api-spec-generator-config', + required: false + } }, RateLimitingPlugin: { instance: 'devproxy-plugin-rate-limiting', diff --git a/src/snippets.json b/src/snippets.json index 93b8a70..decf569 100644 --- a/src/snippets.json +++ b/src/snippets.json @@ -791,6 +791,16 @@ ], "description": "OpenApiSpecGeneratorPlugin instance" }, + "OpenApiSpecGeneratorPluginConfig": { + "prefix": "devproxy-plugin-open-api-spec-generator-config", + "body": [ + "\"openApiSpecGeneratorPlugin\": {", + "\t\"includeOptionsRequests\": false,", + "\t\"specVersion\": \"v3_0\"", + "}" + ], + "description": "OpenApiSpecGeneratorPlugin config section" + }, "RateLimitingPlugin": { "prefix": "devproxy-plugin-rate-limiting", "body": [