expobrain/json-schema-codegen

Misimplemented object type

Opened this issue · 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.