Last active
December 10, 2016 23:35
-
-
Save dexpota/5ef2064b4bc4c09b77811e06cfebd0ff to your computer and use it in GitHub Desktop.
schema.json update.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "object", | |
"properties": { | |
"lines": { | |
"type": "number" | |
}, | |
"modules": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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