opendata-for-all / APIDiscoverer

APIDiscoverer
Eclipse Public License 2.0
25 stars 4 forks source link

Schema.$ref property in generated responses #1

Open MikeRalphson opened 7 years ago

MikeRalphson commented 7 years ago

The API definitions in the HAPI collection often show this problem:

"responses": {
  "200": {
    "description":null,
     "schema":"#/definitions/Resource"
   }
} 

It should be

"responses": {
  "200": {
    "description":"",
     "schema": {
        "$ref": "#/definitions/Resource"
      }
   }
} 
hamzaed commented 7 years ago

Thank you for reporting this issue. I'll fix my serialization process and correct the affected APIs.