Skip to content

Object is not coerced  #28

@expobrain

Description

@expobrain

Defining a property as object with $ref doesn't coerce the data into the referenced object.

For instance:

"document": {
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "$ref": "#/definitions/NodeConfig"
    }
  ]
}

generates:

self.document: NodeConfig = data["document"]

instead of

self.document: NodeConfig = NodeConfig(data["document"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions