You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refer the following Swagger definition, If you try to process this it will result a stackoverflow error. This is dueto the null property parsed as an Enum.
{
"basePath":"/mrprdep",
"tags":[
],
"definitions":{
"nl.medrecord.prd.model.ehr.observation.height.v1.Event+ro":{
"type":"object",
"description":"\n\nFor more information, see the [JSON schema](../schemas/objects/nl_medrecord_prd_model_ehr_observation_height_v1_Event.json) or the [Event](https://javadoc.medvision360.org/prd-api-jee/latest/latest/nl/medrecord/prd/model/ehr/observation/height/v1/Event.html) class in the Javadoc.",
"required":[
"time",
"data"
],
"properties":{
"time":{
"format":"date-time",
"type":"string",
"description":"The time of the event.",
"enum":[
"STANDING",
"LYING",
null,
"RECLINING",
"LYING_WITH_TILT_TO_LEFT"
],
"example":"2014-03-21T21:44Z",
"title":"Time"
},
"data":{
"description":"The data of the event.",
"$ref":"#/definitions/nl.medrecord.prd.model.ehr.observation.height.v1.Data+ro"
}
}
}
},
"info":{
"version":"1.0.0-SNAPSHOT",
"title":"MedRecord API",
"x-advanced":"ehrehrIdcomposition"
},
"swagger":"2.0",
"paths":{
"/ehr":{
"get":{
"parameters":[
{
"type":"string",
"description":"Authorization token.",
"in":"query",
"name":"authToken",
"default":"helloletmeinplease"
}
],
"description":"This method lists all Content",
"tags":[
"ehr"
],
"summary":"List all available EHRs",
"responses":{
"503":{
"description":"The service is unavailable. Please try again later.",
"schema":{
"$ref":"com.medvision360.lib.api.exceptions.server.ServiceUnavailableException"
}
}
}
}
}
}
}
Refer the following Swagger definition, If you try to process this it will result a stackoverflow error. This is dueto the null property parsed as an Enum.
I was able to fix this in the following manner. Please fix this issue.
swagger-api/swagger-js#512
The text was updated successfully, but these errors were encountered: