# Changelog

## [v0.23.0](https://github.com/go-swagger/go-swagger/tree/v0.23.0) (2020-03-14)

[Full Changelog](https://github.com/go-swagger/go-swagger/compare/v0.22.0...v0.23.0)

**Breaking changes:**

- Failed to load template schemabody [\#2223](https://github.com/go-swagger/go-swagger/issues/2223)

**Implemented enhancements:**

- Add middleware router or a kind of path matching [\#2234](https://github.com/go-swagger/go-swagger/issues/2234)
- Incompatible naming convention for a path starting with one letter word [\#2213](https://github.com/go-swagger/go-swagger/issues/2213)

**Fixed bugs:**

- Code generation is broken due to stricter template syntax checks in Go 1.14 [\#2215](https://github.com/go-swagger/go-swagger/issues/2215)
- swagger generate spec -m gives inconsistent json every other run [\#2066](https://github.com/go-swagger/go-swagger/issues/2066)

**Closed issues:**

- How to get matched route in a middleware ? [\#2238](https://github.com/go-swagger/go-swagger/issues/2238)
- Client generation failed: panic: object has no key "Map" [\#2237](https://github.com/go-swagger/go-swagger/issues/2237)
- generated server arguments not working [\#2227](https://github.com/go-swagger/go-swagger/issues/2227)
- codescan/meta.go: cannot use promoted field ContactInfoProps.URL in struct literal of type [\#2214](https://github.com/go-swagger/go-swagger/issues/2214)
- change project name for go-netbox [\#2206](https://github.com/go-swagger/go-swagger/issues/2206)

**Merged pull requests:**

- \[DOCKER\] don't run swagger with "root" [\#2240](https://github.com/go-swagger/go-swagger/pull/2240) ([deogracia](https://github.com/deogracia))
- Add middleware setter for a route \(path prefix\) [\#2236](https://github.com/go-swagger/go-swagger/pull/2236) ([ilyakaznacheev](https://github.com/ilyakaznacheev))
- Working around minor shortcoming in swag.ToGoName [\#2226](https://github.com/go-swagger/go-swagger/pull/2226) ([fredbi](https://github.com/fredbi))
- fixed schemabody.gotmpl template regression caused by \#2221 [\#2225](https://github.com/go-swagger/go-swagger/pull/2225) ([fredbi](https://github.com/fredbi))
- Fix `goimports` step incorrectly rewriting imports [\#2222](https://github.com/go-swagger/go-swagger/pull/2222) ([misha-ridge](https://github.com/misha-ridge))
- Model templates refactoring for readability -- NO CHANGE IN FUNCTIONALITY [\#2221](https://github.com/go-swagger/go-swagger/pull/2221) ([fredbi](https://github.com/fredbi))
- Task: Update template imports to be consistent and ordered [\#2219](https://github.com/go-swagger/go-swagger/pull/2219) ([kenjones-cisco](https://github.com/kenjones-cisco))
- fix go-swagger\#2066 issue [\#2209](https://github.com/go-swagger/go-swagger/pull/2209) ([mfranczy](https://github.com/mfranczy))
- Fix \#2206: Change project name for go-netbox [\#2207](https://github.com/go-swagger/go-swagger/pull/2207) ([kobayashi](https://github.com/kobayashi))
- add option in model generation to output all definitions regardless of usage [\#2205](https://github.com/go-swagger/go-swagger/pull/2205) ([dan-j](https://github.com/dan-j))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
