Skip to content

Commit b31f8df

Browse files
committed
feat: Add IncludeParameters property to list params be included with their values as defaults
1 parent faceaf3 commit b31f8df

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

DevProxy.Plugins/Generation/OpenApiSpecGeneratorPlugin.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public sealed class OpenApiSpecGeneratorPluginConfiguration
5656
public SpecFormat SpecFormat { get; set; } = SpecFormat.Json;
5757
public SpecVersion SpecVersion { get; set; } = SpecVersion.v3_0;
5858
public bool IgnoreResponseTypes { get; set; }
59+
public IEnumerable<string> IncludeParameters { get; set; } = [];
5960
}
6061

6162
public sealed class OpenApiSpecGeneratorPlugin(

schemas/v1.0.0/openapispecgeneratorplugin.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
"Yaml"
3131
],
3232
"description": "Specifies the format of the generated OpenAPI spec. Allowed values: 'Json' or 'Yaml'. Default: 'Json'."
33+
},
34+
"includeParameters": {
35+
"type": "array",
36+
"items": {
37+
"type": "string"
38+
},
39+
"description": "Specifies the list of query string parameters to include in generated OpenAPI spec with their default values. Default: []"
3340
}
3441
},
3542
"additionalProperties": false

0 commit comments

Comments
 (0)