Skip to content

When deserializing a model which has 2 references of the same type, only 1 type is produced on the resulting object #66

@RubyBit

Description

@RubyBit

Take this model for example:

type food

operation cook
input food, food

This serializes as expected:

more json here...,

"operations":[{
  "name" : "cook",
  "inputs" : [ {
    "eClass" : "....",
    "$ref" : "//@cookingTypes.0"
  }, {
    "eClass" : "....",
    "$ref" : "//@cookingTypes.0"
  } ]
}]

When its deserialized though, this is the output:

type food

operation cook
input food

It takes only 1 input now.

I did some debugging and found out that when the 2nd reference is added to the list of inputs of the model (Elist), nothing happens. I am assuming it considers the 2 inputs to be the same cooking type impl object and as such it doesn't work. Is this expected behaviour or a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions