big tings
This commit is contained in:
68
registry/schema-org/SoftwareSourceCode.schema.json
Normal file
68
registry/schema-org/SoftwareSourceCode.schema.json
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "schema:SoftwareSourceCode",
|
||||
"title": "SoftwareSourceCode",
|
||||
"description": "Computer programming source code. Example: Full (compile ready) solutions, code snippet samples, scripts, templates.",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"description": "The most generic kind of creative work, including books, movies, photographs, software programs, etc.",
|
||||
"$ref": "schema:CreativeWork"
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"codeRepository": {
|
||||
"description": "Link to the repository where the un-compiled, human readable code and related code is located (SVN, GitHub, CodePlex).",
|
||||
"oneOf": [
|
||||
{ "type": "string", "format": "uri" },
|
||||
{ "type": "array", "items": { "type": "string", "format": "uri" } }
|
||||
]
|
||||
},
|
||||
"codeSampleType": {
|
||||
"description": "What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template.",
|
||||
"oneOf": [
|
||||
{ "type": "string" },
|
||||
{ "type": "array", "items": { "type": "string" } }
|
||||
]
|
||||
},
|
||||
"programmingLanguage": {
|
||||
"description": "The computer programming language.",
|
||||
"oneOf": [
|
||||
{
|
||||
"anyOf": [{ "type": "string" }, { "$ref": "schema:ComputerLanguage" }]
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{ "type": "string" },
|
||||
{ "$ref": "schema:ComputerLanguage" }
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"runtime": {
|
||||
"description": "Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0).",
|
||||
"type": "string"
|
||||
},
|
||||
"runtimePlatform": {
|
||||
"description": "Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0).",
|
||||
"oneOf": [
|
||||
{ "type": "string" },
|
||||
{ "type": "array", "items": { "type": "string" } }
|
||||
]
|
||||
},
|
||||
"sampleType": {
|
||||
"description": "What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template.",
|
||||
"type": "string"
|
||||
},
|
||||
"targetProduct": {
|
||||
"description": "Target Operating System / Product to which the code applies. If applies to several versions, just the product name can be used.",
|
||||
"oneOf": [
|
||||
{ "$ref": "schema:SoftwareApplication" },
|
||||
{ "type": "array", "items": { "$ref": "schema:SoftwareApplication" } }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user