Skip to content

Instantly share code, notes, and snippets.

@dexpota
Last active December 10, 2016 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dexpota/5ef2064b4bc4c09b77811e06cfebd0ff to your computer and use it in GitHub Desktop.
Save dexpota/5ef2064b4bc4c09b77811e06cfebd0ff to your computer and use it in GitHub Desktop.
schema.json update.
{
"type": "object",
"properties": {
"lines": {
"type": "number"
},
"modules": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
{
"type": "array",
"items": {
"type": "object",
"properties": {
"aggregation": {
"type": "array",
"items": {
"type": "object",
"properties": {
"language": {
"type": "string"
},
"statistics": {
"anyOf": [
{ "$ref": "#/definitions/C++" },
{ "$ref": "#/definitions/C" },
{ "$ref": "https://gist.githubusercontent.com/dexpota/5ef2064b4bc4c09b77811e06cfebd0ff/raw/python.json" },
{ "$ref": "#/definitions/Java" }
]
}
}
}
},
"hashcode": {
"description": "last commit hash",
"type": "string"
},
"repository": {
"description": "repository url",
"type": "string"
},
"statistics": {
"type": "array",
"items": {
"type": "object",
"properties": {
"language": {
"type": "string"
},
"filename":{
"type": "string"
},
"local_directory": {
"type": "string"
},
"statistics": {
"anyOf": [
{ "$ref": "#/definitions/C++" },
{ "$ref": "#/definitions/C" },
{ "$ref": "#/definitions/Python" },
{ "$ref": "#/definitions/Java" }
]
}
}
}
}
}
},
"definitions": {
"C++": {
"properties": {
"lines": {
"type": "number"
}
}
},
"C": {},
"Python": {
"properties": {
"lines": {
"type": "number"
},
"modules": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Java": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment