Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for draft 4 of the standard... #18

Open
the-t-in-rtf opened this issue Sep 19, 2014 · 1 comment
Open

Add support for draft 4 of the standard... #18

the-t-in-rtf opened this issue Sep 19, 2014 · 1 comment

Comments

@the-t-in-rtf
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant