schematic-ipsum icon indicating copy to clipboard operation
schematic-ipsum copied to clipboard

Add support for draft 4 of the standard...

Open the-t-in-rtf opened this issue 10 years ago • 1 comments

Great tool, unfortunately I already had to switch to draft 4 of the JSON Schema standard to use a library, which apparently keeps my schemas from working with your tool.

You can see the error by adding a "required" attribute (part of the v4 standard) to your sample document:

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "ipsum": "id"
    },
    "name": {
      "type": "string",
      "ipsum": "name"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "bio": {
      "type": "string",
      "ipsum": "sentence"
    },
    "age": {
      "type": "integer"
    },
    "avatar": {
      "type": "string",
      "ipsum": "small image"
    }
  },
  "required": ["avatar"]
}

the-t-in-rtf avatar Sep 19 '14 08:09 the-t-in-rtf

I just tested to confirm that the tool seems to completely ignore whatever $schema is set to.

the-t-in-rtf avatar Sep 19 '14 08:09 the-t-in-rtf