milesj/shapeshifter

Local reference shapes

Closed this issue · 1 comments

Allow shapes to be defined as references within the JSON file, so that they can be reused without having to declare external JSON files.

{
  "name": "string",
  "references": {
    "Foo": {
      "a": "string",
      "b": "bool",
      "c": "number",
    }
  },
  "attributes": {
    "bar": {
      "type": "reference",
      "reference": "Foo"
    }
  }
}

Implemented under the new shape references feature.