You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,10 @@
8
8
9
9
These are the changes to each version that has been released on the [nuget](https://www.nuget.org/packages/Unchase.Swashbuckle.AspNetCore.Extensions/).
10
10
11
+
## v2.6.11 `2021-09-29`
12
+
13
+
-[x] Fix [#18](https://github.com/unchase/Unchase.Swashbuckle.AspNetCore.Extensions/issues/18): add aliases for "x-enumNames" and "x-enumDescriptions"
14
+
11
15
## v2.6.9 `2021-08-30`
12
16
13
17
-[x] Fix NRE in `InheritDocRequestBodyFilter` and `InheritDocParameterFilter`
// add schema filter to fix enums (add 'x-enumNames' for NSwag) in schema
128
+
// add schema filter to fix enums (add 'x-enumNames' for NSwag or its alias from XEnumNamesAlias) in schema
129
129
o.ApplySchemaFilter=true;
130
130
131
-
// add parameter filter to fix enums (add 'x-enumNames' for NSwag) in schema parameters
131
+
// alias for replacing 'x-enumNames' in swagger document
132
+
o.XEnumNamesAlias="x-enum-varnames";
133
+
134
+
// alias for replacing 'x-enumDescriptions' in swagger document
135
+
o.XEnumDescriptionsAlias="x-enum-descriptions";
136
+
137
+
// add parameter filter to fix enums (add 'x-enumNames' for NSwag or its alias from XEnumNamesAlias) in schema parameters
132
138
o.ApplyParameterFilter=true;
133
139
134
140
// add document filter to fix enums displaying in swagger document
135
141
o.ApplyDocumentFilter=true;
136
142
137
-
// add descriptions from DescriptionAttribute or xml-comments to fix enums (add 'x-enumDescriptions' for schema extensions) for applied filters
143
+
// add descriptions from DescriptionAttribute or xml-comments to fix enums (add 'x-enumDescriptions' or its alias from XEnumDescriptionsAlias for schema extensions) for applied filters
0 commit comments