Hey everyone,
I'm facing an issue while openapi job. Zap2docker is throwing:
Parsing message body failed: Invalid JSON: <json>:1:9 Expected json literal but found ident {"email":
foo...@example.com,"firstName":"John Doe","lastName":"John Doe","phone":"9999999999"}
As you can see the value under the email key is passed without quotes.
Error is thrown if openapi spec for the email is defined as follow:
"email": {
"type": "string",
"format": "email", <--- without this, openapi job doesn't show parsing errors
"externalDocs": {
"url": "http:\/\/schema.org\/email"
}
Output:
<--- PARSING ERRORS -->
Job openapi added 124 URLs
Job openapi finished
Did anyone of you face a similar issue?
Docker image version: owasp/zap2docker-stable
I run zap.sh with additional options:
- -addonupdate
- -addoninstall ascanrulesBeta
- -addoninstall ascanrulesAlpha
- -addoninstall pscanrulesBeta
- -addoninstall pscanrulesAlpha
Job definition
jobs:
- type: "openapi"
name: "openapi"
parameters:
Thanks for any help!