diff --git a/README.md b/README.md index 10c64dfbb..944d244e9 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ OPTIONS: - [echo](http://github.com/swaggo/echo-swagger) - [buffalo](https://github.com/swaggo/buffalo-swagger) - [net/http](https://github.com/swaggo/http-swagger) +- [gorilla/mux](https://github.com/swaggo/http-swagger) +- [go-chi/chi](https://github.com/swaggo/http-swagger) - [flamingo](https://github.com/i-love-flamingo/swagger) - [fiber](https://github.com/gofiber/swagger) - [atreugo](https://github.com/Nerzal/atreugo-swagger) diff --git a/README_zh-CN.md b/README_zh-CN.md index 45a355f9e..003ee8faa 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -123,6 +123,12 @@ OPTIONS: - [echo](http://github.com/swaggo/echo-swagger) - [buffalo](https://github.com/swaggo/buffalo-swagger) - [net/http](https://github.com/swaggo/http-swagger) +- [net/http](https://github.com/swaggo/http-swagger) +- [gorilla/mux](https://github.com/swaggo/http-swagger) +- [go-chi/chi](https://github.com/swaggo/http-swagger) +- [flamingo](https://github.com/i-love-flamingo/swagger) +- [fiber](https://github.com/gofiber/swagger) +- [atreugo](https://github.com/Nerzal/atreugo-swagger) ## 如何与Gin集成 diff --git a/parser.go b/parser.go index 31d7ce50b..3e2e353eb 100644 --- a/parser.go +++ b/parser.go @@ -1432,7 +1432,6 @@ func defineTypeOfExample(schemaType, arrayType, exampleValue string) (interface{ result[mapData[0]] = v continue - } return nil, fmt.Errorf("example value %s should format: key:value", exampleValue)