Sha256: 1fa8a9657ee1e5144b40e038e851bcea82383364ebcbc9a7caad0cd7aedea8ba

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

{
  "id": "schema.json#",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "schema for ADIwg JSON metadata",
  "type": "object",
  "required": ["version", "contact", "metadata"],
  "properties": {
    "version": {
      "type": "object",
      "required": ["name", "version"],
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string",
          "pattern": "[0-9]\\.[0-9]\\.[0-9]"
        }
      }
    },
    "contact": {
      "$ref": "schema/contact.json"
    },
    "metadata": {
      "$ref": "schema/metadata.json"
    }
  },
  "definitions": {
    "url": {
      "type": "string",
      "pattern": "(https?|ftp):\\/\\/(-\\.)?([^\\s\\/?\\.#-]+\\.?)+(\\/[^\\s]*)?$"
    },
    "uri": {
      "type": "string",
      "pattern": "((?<=\\()[A-Za-z][A-Za-z0-9\\+\\.\\-]*:([A-Za-z0-9\\.\\-_~:/\\?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]|%[A-Fa-f0-9]{2})+(?=\\)))|([A-Za-z][A-Za-z0-9\\+\\.\\-]*:([A-Za-z0-9\\.\\-_~:/\\?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]|%[A-Fa-f0-9]{2})+)"
    },
    "date": {
      "type": "string",
      "pattern": "^(\\d{4}(-\\d{2})?(-\\d{2})?$)|(^\\d{4}-\\d{2}-\\d{2}(T\\d{2})?(\\:\\d{2}(\\:\\d{2}(\\.\\d+)?)?|Z)?(Z|(-|\\+)\\d{2}(:\\d{2})?)?$)"
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adiwg-json_schemas-0.5.0 schema/schema.json