Skip to content

Commit f40a7a9

Browse files
authored
Add OpenApiSpecGeneratorPlugin config snippet. Closes #156 (#157)
1 parent 0019f20 commit f40a7a9

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010
## [0.15.0] - Unreleased
1111

12+
### Changed:
13+
14+
- Snippets: `devproxy-plugin-open-api-spec-generator` - OpenApiSpecGeneratorPlugin config section
15+
1216
## [0.14.0] - 2024-11-27
1317

1418
### Added:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ Shown when the active document is a Dev Proxy configuration file
126126
| `devproxy-plugin-graph-odsp-search-guidance` | ODSPSearchGuidancePlugin instance |
127127
| `devproxy-plugin-openai-mock-response` | OpenAIMockResponsePlugin instance |
128128
| `devproxy-plugin-open-api-spec-generator` | OpenApiSpecGeneratorPlugin instance |
129+
| `devproxy-plugin-open-api-spec-generator-config` | OpenApiSpecGeneratorPlugin config section |
129130
| `devproxy-plugin-rate-limiting` | MockResponsePlugin instance |
130131
| `devproxy-plugin-rate-limiting-config` | RateLimitingPlugin config section |
131132
| `devproxy-plugin-rate-limiting-file` | Dev Proxy rate limiting file |

src/constants.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ export const pluginSnippets: PluginSnippets = {
148148
instance: 'devproxy-plugin-openai-mock-response',
149149
},
150150
OpenApiSpecGeneratorPlugin: {
151-
instance: 'devproxy-plugin-openapi-doc-generator',
151+
instance: 'devproxy-plugin-open-api-spec-generator',
152+
config: {
153+
name: 'devproxy-plugin-open-api-spec-generator-config',
154+
required: false
155+
}
152156
},
153157
RateLimitingPlugin: {
154158
instance: 'devproxy-plugin-rate-limiting',

src/snippets.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,16 @@
791791
],
792792
"description": "OpenApiSpecGeneratorPlugin instance"
793793
},
794+
"OpenApiSpecGeneratorPluginConfig": {
795+
"prefix": "devproxy-plugin-open-api-spec-generator-config",
796+
"body": [
797+
"\"openApiSpecGeneratorPlugin\": {",
798+
"\t\"includeOptionsRequests\": false,",
799+
"\t\"specVersion\": \"v3_0\"",
800+
"}"
801+
],
802+
"description": "OpenApiSpecGeneratorPlugin config section"
803+
},
794804
"RateLimitingPlugin": {
795805
"prefix": "devproxy-plugin-rate-limiting",
796806
"body": [

0 commit comments

Comments
 (0)