Open shadobot opened 2 months ago
Hi, I did the test, same issue:
# docker run --network="host" --rm -v /home/cyber/reports:/app/reports -v ${PWD}/api.yaml:/app/api.yaml wallarm/gotestwaf --url=https://api.eu-west-2.outscale.com --noEmailReport --wafName Outscale --addHeader "goteswaf" --addDebugHeader --workers 1 --sendDelay 5 --openapiFile api.yaml
time="2024-09-30T12:47:58Z" level=info msg="GoTestWAF started" version=v0.5.5
time="2024-09-30T12:47:58Z" level=error msg="caught error in main function" error="couldn't create templates from OpenAPI file: couldn't parse request body schema: couldn't parse object: unknown schema type: "
Hi, We have this error when we run gotestWaf with this swagger : outscale-no_oneof.txt
The attached file is an openAPI swagger file in yaml format
I don't see any error in swaggerHub could you please check the parser.
docker run --rm --network="host" -it -v ${PWD}/reports:/app/reports wallarm/gotestwaf --url=http://api.eu-west-2.outscale.com --openapiFile reports/outscale-no_oneof.yaml
INFO[0000] GoTestWAF started version=v0.5.5 ERRO[0000] caught error in main function error="couldn't create templates from OpenAPI file: couldn't parse request body schema: couldn't parse object: unknown schema type: "
Best regards