Hi,
I've been investigating using out swagger yaml file to drive ZAP (2.6), and i've been able to successfully do this through the UI, importing the yaml file from the filesystem.
However, when I run zap-api-scan.py from the docker weekly container, it does not find any URLs
I'm running
docker run -v /tmp:/zap/wrk -i owasp/zap2docker-weekly zap-api-scan.py -t /zap/wrk/swagger_reduced.yaml -f openapi -d
2017-06-21 09:37:23,745 ZAP Version D-2017-06-19
2017-06-21 09:37:23,746 Took 18 seconds
2017-06-21 09:37:23,769 Import OpenAPI File /zap/wrk/swagger_reduced.json
2017-06-21 09:37:23,784 Failed to import any URLs
2017-06-21 09:37:23,784 Number of Imported URLs: 0
2017-06-21 09:37:23,784 Import warnings: {u'message': u'Does Not Exist', u'code': u'does_not_exist'}
2017-06-21 09:37:23,784 Active Scan /zap/wrk/ with policy API-Minimal
Is the importer used by zap-api-scan different to that used by the openapi plugin in the ZAP ui?
Any thoughts as to why this might be happening?
Regards
Chris