Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yalisassoon/302ae7cdfce323d8cc2f42a28d44b8dd to your computer and use it in GitHub Desktop.
Save yalisassoon/302ae7cdfce323d8cc2f42a28d44b8dd to your computer and use it in GitHub Desktop.
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Meta-schema for self-describing JSON schema",
"self": {
"vendor": "com.snowplowanalytics.self-desc",
"name": "schema",
"format": "jsonschema",
"version": "2-0-0"
},
"allOf": [
{
"properties": {
"self": {
"type": "object",
"properties": {
"vendor": {
"type": "string",
"pattern": "^[a-zA-Z0-9-_.]+$"
},
"name": {
"type": "string",
"pattern": "^[a-zA-Z0-9-_]+$"
},
"format": {
"type": "string",
"pattern": "^[a-zA-Z0-9-_]+$"
},
"version": {
"type": "string",
"pattern": "^[0-9]+-[0-9]+-[0-9]+$"
}
},
"required": [
"vendor",
"name",
"format",
"version"
],
"additionalProperties": false
}
},
"metadata": {
"type": "object"
},
"required": [
"self"
]
},
{
"$ref": "http://json-schema.org/draft-04/schema#"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment