Skip to content

Instantly share code, notes, and snippets.

@Netkas
Created January 6, 2022 22:10
Show Gist options
  • Save Netkas/fa7e97a23e10aa65377bcd742e978d7a to your computer and use it in GitHub Desktop.
Save Netkas/fa7e97a23e10aa65377bcd742e978d7a to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"package": {
"type": "object",
"properties": {
"package_name": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"author": {
"type": "string"
},
"organization": {
"type": "string"
},
"description": {
"type": "string"
},
"url": {
"type": "string"
},
"dependencies": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"package": {
"type": "string"
},
"version": {
"type": "string"
},
"source": {
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"package",
"version",
"required"
]
}
]
},
"configuration": {
"type": "object",
"properties": {
"autoload_method": {
"type": "string"
},
"main": {
"type": "null"
},
"post_installation": {
"type": "array",
"items": {}
},
"pre_installation": {
"type": "array",
"items": {}
}
},
"required": [
"autoload_method",
"main",
"post_installation",
"pre_installation"
]
}
},
"required": [
"package_name",
"name",
"version",
"description",
"dependencies",
"configuration"
]
},
"components": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"required": {
"type": "boolean"
},
"file": {
"type": "string"
}
},
"required": [
"required",
"file"
]
},
{
"type": "object",
"properties": {
"required": {
"type": "boolean"
},
"file": {
"type": "string"
}
},
"required": [
"required",
"file"
]
},
{
"type": "object",
"properties": {
"required": {
"type": "boolean"
},
"file": {
"type": "string"
}
},
"required": [
"required",
"file"
]
},
{
"type": "object",
"properties": {
"required": {
"type": "boolean"
},
"file": {
"type": "string"
}
},
"required": [
"required",
"file"
]
}
]
},
"files": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
]
}
},
"required": [
"package",
"components",
"files"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment