Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPi swagger parser : unknown schema type: " #257

Open
shadobot opened this issue Sep 11, 2024 · 1 comment
Open

OpenAPi swagger parser : unknown schema type: " #257

shadobot opened this issue Sep 11, 2024 · 1 comment

Comments

@shadobot
Copy link

shadobot commented Sep 11, 2024

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

@nergalex
Copy link

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: "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants