json-schema-codegen icon indicating copy to clipboard operation
json-schema-codegen copied to clipboard

Misimplemented object type

Open sztanko opened this issue 6 years ago • 0 comments

"params": {
      "type": "object",
      "$ref": "#/definitions/DBConnection"
    },```

translates to: 

```self.params: Optional[Dict] = data.get('params')```

The only way to make it an object is to have it like this:

"params": {
  "type": "object",
  "oneOf": [{ "$ref": "#/definitions/DBConnection" }]
},```

I would like to have the first jsonschema implemented as well.

sztanko avatar Mar 07 '19 13:03 sztanko