iasthc / hsuan-fuzz

Hsuan-Fuzz: REST API Fuzzing by Coverage Level Guided Blackbox Testing
Apache License 2.0
29 stars 6 forks source link

getkin version has renamed openapi3.Swagger to openapi3.T #1

Open twocs opened 2 years ago

twocs commented 2 years ago

On install, there is an error:

PS D:\APOD\apod-backend-api> go get github.com/iasthc/hsuan-fuzz/pkg/rest-api go: downloading github.com/iasthc/hsuan-fuzz v1.0.2 go: downloading github.com/valyala/fastjson v1.6.3 go: downloading github.com/getkin/kin-openapi v0.68.0 go: downloading github.com/ghodss/yaml v1.0.0

github.com/iasthc/hsuan-fuzz/pkg/rest-api

\go1.18beta2\pkg\mod\github.com\iasthc\hsuan-fuzz@v1.0.2\pkg\rest-api\hsuanfuzz.go:94:15: undefined: openapi3.Swagger \go1.18beta2\pkg\mod\github.com\iasthc\hsuan-fuzz@v1.0.2\pkg\rest-api\hsuanfuzz.go:94:15: undefined: openapi3.Swagger

This indicates that the version of getkin is not fixed as a prerequisite, and this package has not kept up with its upstream changes.

https://github.com/getkin/kin-openapi#v0610

Renamed openapi3.Swagger to openapi3.T.

iasthc commented 2 years ago

@twocs Thanks for the feedback. I am unable to use my laptop for some personal reasons recently. It will be fixed asap.