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

Provide OA validator #21

Open
dazza-codes opened this issue May 19, 2015 · 1 comment
Open

Provide OA validator #21

dazza-codes opened this issue May 19, 2015 · 1 comment

Comments

@dazza-codes
Copy link
Contributor Author

A very crude starting point:

  # JSON Schema
  # json-schema for description and validation of Open Annotation 1.0, see
  # http://www.openannotation.org/spec/core/
  OA_JSON_SCHEMA = <<-END_JSON_SCHEMA_STR
  {
    "type":"object",
    "title":"Open Annotation",
    "description":"A json-schema for Open Annotation 1.0, see http://www.openannotation.org/",
    "additionalProperties":true,
    "properties":{
      "@id":{ "type":"string", "format":"uri", "required": true },
      "hasTarget":{ "type":"string", "format":"uri", "required": true },
      "hasBody":{ "type":"string", "format":"uri" }
    }
  }
  END_JSON_SCHEMA_STR

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