Marwes / schemafy

Crate for generating rust types from a json schema
MIT License
242 stars 51 forks source link

Support external refs #3

Open mre opened 7 years ago

mre commented 7 years ago

It would be great if schemafy could support external refs like these:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "reactions": {
      "type": "array",
      "items": { "$ref": "reaction.json" }
    }
  },
  "id": "file_comment"
}

(As discussed in #2)