v6.0.0
domaindrivendev
released this
05 Feb 11:07
·
614 commits
to master
since this release
This release includes a number of small enhancements and bug fixes. See the following for a full list of issues addressed:
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/milestone/16?closed=1
Of note, these include:
- include discriminator metadata in base schema if either UseOneOfForPolymorphism OR UseAllOfForInheritance are enabled
- remove fragile logic around X-Forwarded-* headers in favor of MS's Forwarded Headers Middleware (*see breaking changes)
- beta (opt-in) support for non-nullable reference types
- enhancements to SwaggerSchemaAttribute incl. use on Enum types & ability to set Nullable flag explicitly
- wrap generator exceptions to surface contextual info for troubleshooting
- support JSON object/array syntax in XML tags
- improved handling for enum default values to reflect serializer behavior more accurately
- upgrade swagger-ui to 3.40.0
Breaking Changes
- the obsolete settings
DescribeAllEnumsAsStrings
andDescribeStringEnumsInCamelCase
are now fully removed - X-Forwarded-* headers are no longer honored within SB code - use MS's Forwarded Headers Middleware instead