Releases: swaggo/swag
Releases Β· swaggo/swag
v1.16.6
What's Changed
- fix: prevent nil pointer dereference in getFuncDoc when parsing depen⦠by @gatorjuice in #2044
- fix: router with tilde #2004 by @subwiz in #2005
- Feature: allow enum ordered const name override (2nd PR for this) by @drewsilcock in #2046
- Use the structs name without the @name comment by @skast96 in #2043
- feat: allow description line continuation by @berk-karaal in #2048
New Contributors
- @gatorjuice made their first contribution in #2044
- @subwiz made their first contribution in #2005
- @drewsilcock made their first contribution in #2046
- @skast96 made their first contribution in #2043
Full Changelog: v1.16.5...v1.16.6
v1.16.5
What's Changed
- Added support for @tag.x- attributes for tags (#1784) by @Ponywka in #1785
- feat: Add x-enum-descriptions to generated Swagger documentation for Enum by @wakamenod in #1878
- fix: use '&&' for security pair(AND) by @kkkiio in #1659
- feat: ParseComment error to contain the comment by @stokito in #1777
- support generate var-declared function doc by @book987 in #1657
- Fix compare original and formatted by @0daryo in #1915
- Transfer golang type to swagger type with format reserved by @sdghchj in #1944
- Fix format by goimports by @0daryo in #1927
- chore(deps): bump golang.org/x/crypto from 0.21.0 to 0.31.0 in /example/object-map-example by @dependabot[bot] in #1945
- fix: @name for recursion by @njacob1001 in #1948
- Fix typo error in README by @yashisrani in #1954
- Extension: collectionFormat in struct tag by @sdghchj in #1989
- chore: accept event streaming by @miguelhrocha in #1992
- Non-empty stderr for
go listis not an error in itself by @atercattus in #1981 - Updated golang/x/text v0.21, x/tools v0.21 to address CVE-2024-45338 in net v0.23 by @blame19 in #1962
- Remove redundant
(default: false)for parseFuncBody flag by @nikpivkin in #1961 - chore(deps): bump golang.org/x/crypto from 0.21.0 to 0.31.0 in /example/celler by @dependabot[bot] in #1993
- fix(test): include
runetest in enums tests by @sharunkumar in #2025 - feat: json:omitempty marks field as optional by @andyatmiami in #2041
New Contributors
- @wakamenod made their first contribution in #1878
- @stokito made their first contribution in #1777
- @book987 made their first contribution in #1657
- @njacob1001 made their first contribution in #1948
- @yashisrani made their first contribution in #1954
- @miguelhrocha made their first contribution in #1992
- @atercattus made their first contribution in #1981
- @blame19 made their first contribution in #1962
- @sharunkumar made their first contribution in #2025
- @andyatmiami made their first contribution in #2041
Full Changelog: v1.16.4...v1.16.5
v2.0.0-rc4
Changelog
- ce8b32c Add option to set template delimiters (#1499)
- 6700370 Feat openapiv3 oneof (#1870)
- 0709499 Feat servers variables of current spec (#1612)
- 33441d9 Implementing OpenAPI 3.1.0 spec (#1513)
- d76b289 Implementing OpenAPI 3.1.0 spec (#1513)
- b980cd9 Implementing OpenAPI 3.1.0 spec (#1513)
- e3bb142 Implementing OpenAPI 3.1.0 spec (#1513)
- 5b930d4 Merge branch 'v2' into v2-merge
- 2fa63cf Merge pull request #1907 from swaggo/v2-merge
- 5a2adc0 Merge remote-tracking branch 'origin/v2' into v2
- 687052e Revert "Support openapiV3 oneOf for fields/responses (#1671)" (#1699)
- 37834cd Revert "merge master to v2 (#1903)" (#1906)
- 6e63ab7 Support accept Header & Use RequestBody (#1541)
- 8f63cde Support openapiV3 oneOf for fields/responses (#1671)
- a3046bf Update README_zh-CN.md (#1545) (#1546)
- c7b796d V2: Add Servers param (#1573)
- 9a872fb V2: Fix template delims (#1572)
- acb0508 V2: Fix tests after module upgrade (#1557)
- 21247c7 V2: Support produce comment (#1551)
- ff9485a V2: Update Makefile (#1560)
- 44b59ad V2: upgrade modulename to v2 (#1552)
- bc4852b add support for servers on operation level for 3.1 (#1923)
- b060856 chore: add v2 to ci (#1532)
- 601fee1 chore: add v2 to ci (#1532)
- 45df9a3 chore: fix unit tests after merging #1499 (#1558)
- 17cc743 chore: linting code (#1533)
- 4d56898 chore: linting code (#1533)
- 72d07cd chore: linting code (#1533)
- 6d1a872 chore: refactor code (#1539)
- 677b4c2 chore: refactor code (#1539)
- 7ab1219 chore: remove GOPATH support and go1.17 (#1536)
- 27719cd chore: remove GOPATH support and go1.17 (#1536)
- 7394a48 chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml (#1520) (#1538)
- 5a199fc feat: add securitydefinitions.bearerauth for bearer token setting (#1854)
- c85d570 fix bug: enums of explicit type conversion (#1556)
- 60ef6b7 fix bug: enums of underscored number (#1581) (#1592)
- 36c14a4 fix some issues
- 6106783 fix unit tests
- 86df652 fix: avoid shadowed variable on operationv3 (#1680)
- ef38f54 fix: fix merge error caused by 2fa63cf (#1912)
- 37dac67 fix: fixed definition parsing for alias types (#1688)
- 543e18b implement pattern tag (#1553)
- 7b50e07 merge master to v2 (#1903)
v1.16.4
Changelog
- 85254b4 Added multiline support for @description attribute for securityDefinitions (#1786)
- 7204462 Added suport for parsing comments inside of function bodies (#1824)
- d323b48 Feat: Add support for parenthesis in router patterns (#1859)
- 15dae35 Feat: multi-arch docker image (#1756)
- 83fe3ca Fix generics used with function scoped types (#1883)
- ff50cd6 Fix global overrides for any/interface ref types (#1835)
- 1d730c5 Fix param comment escaping issue (#1890)
- 697572a Fixes Issue 1829 (#1830)
- 28de14c Flags to parse internal and dependency package (#1894)
- 4c2f8dd Handle case of empty GOROOT (#1798)
- 87e7d9c Update docker go build version to 1.21 (#1758)
- 4fd8a36 Update docs for request and response headers (#1825)
- 56fde5c Update operation.go (#1753)
- 807dd1f [Issue 1812] fix misalignment in expected.json and api.go messing with parser_test (#1836)
- 91624ad add support for "title" tag (#1762)
- f32d4d3 adds support for complex types with function scope (#1813)
- c7f1cd8 adds support for pointer function scoped fields (#1841)
- 8a47dcb bump go version (#1797)
- 0834357 chore(deps): bump golang.org/x/net from 0.17.0 to 0.23.0 (#1793)
- 1bb1445 chore(deps): bump golang.org/x/net in /example/celler (#1794)
- 6aa6613 chore(deps): bump golang.org/x/net in /example/go-module-support (#1795)
- d5af957 chore(deps): bump golang.org/x/net in /example/markdown (#1792)
- 0368d7d chore(deps): bump golang.org/x/net in /example/object-map-example (#1796)
- b8662de chore(deps): bump google.golang.org/protobuf (#1773)
- 4a11e23 chore(deps): bump google.golang.org/protobuf (#1774)
- 937c239 chore(deps): bump google.golang.org/protobuf in /example/celler (#1775)
- 103ac42 chore: Update ci.yml (#1902)
- 90aa46f chore: fix some typos in comments (#1788)
- e55c557 feat: read from stdin, write to stdout (#1831) (#1832)
- fd2fa83 fix issue: #1780: filter $GOROOT path (#1827)
- 10030b0 fix parse nested structs and aliases (#1866)
- 7159b0f fix: failing assert in enums test on 32bit (#1634)
- 928264c fix: remove dropped tags from general infos (#1764)
- a74d34c fixοΌparse all field names declared in a row (#1872)
- 0b9e347 new release (#1901)
- a3c6d12 support markdown description for declaration (#1893)
- 9069105 update README (#1856)
v1.16.3
Changelog
- 7147984 Feat: Support generic with map params (#1746)
- ae7e404 Fix: Trim tab spaces from @scope annotations (#1744)
- d4218f2 Feat: Struct fields supported for header and path param types (#1740)
- 76695ca Fix: TrimRight
[]on an array filed json name to compatible with ts codegen (#1706) - 7603121 Feat: Add flag state to generate operations with different state into different docs (#1629)
- 0fb6820 Feat: Deprecate some parts of routers in an operation (#1735)
- 744a58e Drop support for go v1.17.x (#1723)
- 6cdaaf5 Fix: Find definitions from external packages first (#1666)
- 0ade78c Enhancement: Improve docker container usage (#1704)
- 2da9651 Fix: nil supported in combined response object(#1667)
v1.16.2
Changelog
- f05ccdc add byte check before and after file is formatted (#1637)
- 7534a13 add cli flag --pdl to determine whether parse operations in dependency (#1605)
- 21d34e2 add retract to fix proxy cache caused by accidentally pushed tags (#1562)
- b2f325f chore(deps): bump github.com/gin-gonic/gin (#1598)
- 8e5b314 chore(deps): bump github.com/gin-gonic/gin in /example/celler (#1599)
- c8372f6 chore(deps): bump github.com/gin-gonic/gin in /example/go-module-support (#1600)
- 23c9b5c chore(deps): bump gopkg.in/yaml.v3 (#1663)
- 8ebf32f docs(readme): fix param brace (#1647)
- 27b27bd enchancement: report which property is triggering a parsing error (#1439)
- d0f9dc5 feat: add --packagePrefix=P for only parse packages matched by prefix P (#1582)
- 1bf0078 feat: global security (#1620)
- 9f128b4 feat: preserve file permission when write formatted files (#1636)
- ea35767 fix bug: enums of underscored number (#1581)
- 0cee1c5 fix required params parsing for routes with multiple paths and multiple params (#1621)
- e73a0d0 fix using tab (\t) as separator for custom type names (#1594)
- 4536bf2 fix: enums in body got parse incorrectly (#1625)
- e749ad5 fix: lint error for generated docs.go (#1583)
- 575963e parse binary literal const (#1593)
- fe971d2 parser: if all tags negate return true on no hits (#1624)
- e9d0aa5 yaml.v3 security patch (#1664)
v2.0.0-rc3
v2.0.0-rc2
What's Changed
- Implementing OpenAPI 3.1.0 spec by @Nerzal in #1513
- chore: add v2 to ci by @ubogdan in #1532
- chore: linting code by @ubogdan in #1533
- Add option language Portuguese in readme by @Paulo-Lopes-Estevao in #1531
- chore: remove GOPATH support and go1.17 by @ubogdan in #1536
- chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml (#1520) by @ubogdan in #1538
- chore: refactor code by @ubogdan in #1539
- Support accept Header & Use RequestBody by @Nerzal in #1541
- Update README_zh-CN.md (#1545) by @ubogdan in #1546
- V2: Support produce comment by @Nerzal in #1551
- V2: upgrade modulename to v2 by @Nerzal in #1552
- V2: Implement pattern tag by @Nerzal in #1553
- V2: Fix tests after module upgrade by @Nerzal in #1557
- chore: fix unit tests after merging #1499 by @ubogdan in #1558
Full Changelog: v2.0.0-beta...v2.0.0-rc2
v2.0.0-rc1
Changelog
- 0224a8b Add option language Portuguese in readme (#1531)
- 122a2e2 FIX generics like type JSON[K,V string] map[K]V (#1509)
- b980cd9 Implementing OpenAPI 3.1.0 spec (#1513)
- 5a2adc0 Merge remote-tracking branch 'origin/v2' into v2
- 6e63ab7 Support accept Header & Use RequestBody (#1541)
- a3046bf Update README_zh-CN.md (#1545) (#1546)
- 21247c7 V2: Support produce comment (#1551)
- 44b59ad V2: upgrade modulename to v2 (#1552)
- 601fee1 chore: add v2 to ci (#1532)
- ea779b8 chore: drop support for go 1.16 (#1518)
- 72d07cd chore: linting code (#1533)
- 677b4c2 chore: refactor code (#1539)
- 27719cd chore: remove GOPATH support and go1.17 (#1536)
- 7ab1219 chore: remove GOPATH support and go1.17 (#1536)
- 314d61f chore: replace
github.com/ghodss/yamlwithsigs.k8s.io/yaml(#1520) - 7394a48 chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml (#1520) (#1538)
- c9bca77 fix field of enum type as formdata (#1511)
- 543e18b implement pattern tag (#1553)
- e67c965 transform struct fields of array enum type in a struct to query/formData params (#1523)