Swag Versions Save

Automatically generate RESTful API documentation with Swagger 2.0 for Go.

v1.16.3

3 months ago

Changelog

  • 71479840365bb3230a6e918e76fcc49eed959c73 Feat: Support generic with map params (#1746)
  • ae7e40458a443f8aa4e3de18aa96572e8bec00b5 Fix: Trim tab spaces from @scope annotations (#1744)
  • d4218f274fc1f8c0a047a204d54391850d369ead Feat: Struct fields supported for header and path param types (#1740)
  • 76695ca805952b7d053bd169dbf87476c7dc0e43 Fix: TrimRight [] on an array filed json name to compatible with ts codegen (#1706)
  • 76031216231b1c6a0869f15c944394a3013767bb Feat: Add flag state to generate operations with different state into different docs (#1629)
  • 0fb6820cd53c1a5a4bb82b9ba955287da9e1e712 Feat: Deprecate some parts of routers in an operation (#1735)
  • 744a58e926382a8d965f60ca02765b52db6efd8f Drop support for go v1.17.x (#1723)
  • 6cdaaf5c77457e82d9e0f8fccd303fefb8dc8072 Fix: Find definitions from external packages first (#1666)
  • 0ade78c78572dd28f38cde315380241e6e8d30eb Enhancement: Improve docker container usage (#1704)
  • 2da9651010b267aaa273464dfcedc18ae0860b93 Fix: nil supported in combined response object(#1667)

v1.16.2

8 months ago

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

1 year ago

What's Changed

Full Changelog: https://github.com/swaggo/swag/compare/v2.0.0-rc2...v2.0.0-rc3

v2.0.0-rc2

1 year ago

What's Changed

Full Changelog: https://github.com/swaggo/swag/compare/v2.0.0-beta...v2.0.0-rc2

v2.0.0-rc1

1 year ago

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/yaml with sigs.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)

v2.0.0-beta

1 year ago

Changelog

  • 33441d9 Implementing OpenAPI 3.1.0 spec (#1513)
  • b060856 chore: add v2 to ci (#1532)
  • 4d56898 chore: linting code (#1533)

v1.8.12

1 year ago

Changelog

  • 122a2e2 FIX generics like type JSON[K,V string] map[K]V (#1509)
  • ea779b8 chore: drop support for go 1.16 (#1518)
  • c9bca77 fix field of enum type as formdata (#1511)

v1.8.11

1 year ago

Changelog

  • 9a0a669 Added file data type (#1424)
  • 37f466e Support externalDocs annotation comment (#1468)
  • 19ddb4d Use form tags when available (#1422)
  • 0524687 additional error message when parsing type definition (#1488)
  • b47f4ef chore(deps): bump golang.org/x/net (#1492)
  • 85a35b4 chore(deps): bump golang.org/x/net in /example/celler (#1495)
  • efd70ff chore(deps): bump golang.org/x/net in /example/go-module-support (#1494)
  • 9dbff61 chore(deps): bump golang.org/x/net in /example/markdown (#1491)
  • fcffae2 chore(deps): bump golang.org/x/net in /example/object-map-example (#1493)
  • 09f373f chore(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 (#1473)
  • 0472c53 chore(deps): bump golang.org/x/text in /example/celler (#1472)
  • 9faf8b3 chore(deps): bump golang.org/x/text in /example/go-module-support (#1474)
  • aa3e8d5 chore: update deprecated options in goreleaser.yml for 1.4.x compatibility (#1450)
  • aaa681e chore: update version.go (#1507)
  • f56e0bb feat: ADD collection format flag (#1482)
  • f475da2 feat: add packageName option for docs.go (#1442)
  • d2bc3d0 fix alias type of generic with multi formal params (#1505)
  • 8445e75 fix generic type that has more than 2 params with only one constraint type (#1506)
  • 9e4a292 fix: generated doc.go first line cmt leading dot (#1480)
  • 566b8af if the top type name is any or interface{}, don't use allOf (#1421)
  • 3f0a4b0 support form tag (#1502)

v1.8.10

1 year ago

Changelog

f916213 Do not parse operations in dependency (#1432) 6d18e7a chore: update version (#1449) 1789c00 enable build support for macOS arm64 (#1448) f617051 fix multi level nesting parametrization(#1435) 0d72fbd fix: string cutset method usage (#1406) 7433f87 gocritic comment should match error bugfix. (#1443) 00dd8cb style: remove duplicate space (#1436)

v1.8.9

1 year ago

Changelog

a10fb9a Just optimize code about parsing extensions (#1399) 4ccbeaf chore: increment version (#1423) 8139731 chore: parse escaped double colon (\:) example struct tag (#1402) 2c530ea chore: release candidate (#1403) e3151c1 chore: release candidate (#1404) e50db3e enhancement for enums (#1400) 7c20f30 feat: parse only specific extension tag (#1219) 80d5221 feat: support json tags in embedded structs (#1396) 4519064 feat: use enums in request (#1417) 9a4fa5d fix issue 1414 (#1419) 30684a2 fix parsing bug affected by fmt (#1398) 7867c24 fix: don't error on empty comment line (#1415) dfce6c8 parse self-nested generic struct (#1420) ba5df82 record token.FileSet for every file so that the position of parsing error can be acquired (#1393) 3fe9ca2 revert docker login-action (#1405)