Open Avreimyki opened 2 years ago
Hello @Avreimyki,
In order to reproduce your failure, would you be able to share a sample schema corresponding to your example? I tried a few different request bodies with a null value, and have not been able to reproduce this crash with the latest version of RESTler.
Thanks,
Marina
Hi @marina-p
Thank you for quick replay.
here is example spec:
{
"openapi": "3.0.1",
"info": {
"title": "httpbin",
"description": "An unofficial OpenAPI definition for [httpbin.org](https://httpbin.org).",
"version": "1.0"
},
"servers": [
{
"url": "https://apim3.azure-api.net/httpbin"
}
],
"paths": {
"/cache": {
"get": {
"summary": "Returns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304.",
"description": "Returns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304.",
"operationId": "get-cache",
"parameters": [
{
"name": "If-Modified-Since",
"in": "header",
"description": "For testing purposes this header accepts any value. (???) See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since\n",
"schema": {
"type": "string",
"example": "Wed, 21 Oct 2015 07:28:00 GMT"
}
},
{
"name": "If-None-Match",
"in": "header",
"description": "For testing purposes this header accepts any value. (???) See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match\n",
"schema": {
"type": "string"
},
"examples": {
"abc": {
"value": null
}
}
}
],
"responses": {
"200": {
"description": "Neigher If-Modified-Since nor If-None-Match header is provided"
}
}
}
}
}
}
Thanks. Avreimy
Hi I got an issue from the compiler when when I have value null on example object. for example I have in requestBody like this:
and I got error: