Edición candidata 0.2.0-rc.2
OSR · Esquema JSON
{
"$defs": {
"executionProfile": {
"additionalProperties": false,
"allOf": [
{
"else": {
"properties": {
"runtime": {
"properties": {
"status": {
"enum": [
"declared",
"not-declared"
]
}
}
}
}
},
"if": {
"properties": {
"mode": {
"const": "data-template"
}
}
},
"then": {
"properties": {
"architectures": {
"properties": {
"status": {
"const": "not-applicable"
}
}
},
"operatingSystems": {
"properties": {
"status": {
"const": "not-applicable"
}
}
},
"platforms": {
"properties": {
"status": {
"const": "not-applicable"
}
}
},
"runtime": {
"properties": {
"status": {
"const": "not-applicable"
}
}
}
}
}
}
],
"properties": {
"architectures": {
"additionalProperties": false,
"allOf": [
{
"else": {
"properties": {
"refs": {
"maxItems": 0
}
}
},
"if": {
"properties": {
"status": {
"const": "declared"
}
}
},
"then": {
"properties": {
"refs": {
"minItems": 1
}
}
}
}
],
"properties": {
"refs": {
"items": {
"pattern": "^[a-z][a-z0-9]*(?:\\.[a-z][a-z0-9]*){3,}$",
"type": "string"
},
"type": "array",
"uniqueItems": true
},
"status": {
"enum": [
"declared",
"not-declared",
"not-applicable"
],
"type": "string"
}
},
"required": [
"status",
"refs"
],
"type": "object"
},
"evidence": {
"additionalProperties": false,
"properties": {
"basis": {
"enum": [
"source-declaration",
"source-inspection"
],
"type": "string"
},
"note": {
"minLength": 1,
"type": "string"
},
"pointers": {
"items": {
"additionalProperties": false,
"properties": {
"path": {
"minLength": 1,
"type": "string"
},
"pointer": {
"type": "string"
}
},
"required": [
"path",
"pointer"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"basis",
"pointers",
"note"
],
"type": "object"
},
"languageRef": {
"pattern": "^[a-z][a-z0-9]*(?:\\.[a-z][a-z0-9]*){3,}$",
"type": "string"
},
"mode": {
"enum": [
"executable",
"data-template"
],
"type": "string"
},
"operatingSystems": {
"additionalProperties": false,
"allOf": [
{
"else": {
"properties": {
"refs": {
"maxItems": 0
}
}
},
"if": {
"properties": {
"status": {
"const": "declared"
}
}
},
"then": {
"properties": {
"refs": {
"minItems": 1
}
}
}
}
],
"properties": {
"refs": {
"items": {
"pattern": "^[a-z][a-z0-9]*(?:\\.[a-z][a-z0-9]*){3,}$",
"type": "string"
},
"type": "array",
"uniqueItems": true
},
"status": {
"enum": [
"declared",
"not-declared",
"not-applicable"
],
"type": "string"
}
},
"required": [
"status",
"refs"
],
"type": "object"
},
"platforms": {
"additionalProperties": false,
"allOf": [
{
"else": {
"properties": {
"refs": {
"maxItems": 0
}
}
},
"if": {
"properties": {
"status": {
"const": "declared"
}
}
},
"then": {
"properties": {
"refs": {
"minItems": 1
}
}
}
}
],
"properties": {
"refs": {
"items": {
"pattern": "^[a-z][a-z0-9]*(?:\\.[a-z][a-z0-9]*){3,}$",
"type": "string"
},
"type": "array",
"uniqueItems": true
},
"status": {
"enum": [
"declared",
"not-declared",
"not-applicable"
],
"type": "string"
}
},
"required": [
"status",
"refs"
],
"type": "object"
},
"requirements": {
"items": {
"additionalProperties": false,
"properties": {
"name": {
"minLength": 1,
"type": "string"
},
"note": {
"minLength": 1,
"type": "string"
},
"versionConstraint": {
"minLength": 1,
"type": "string"
}
},
"required": [
"name",
"note"
],
"type": "object"
},
"type": "array"
},
"runtime": {
"additionalProperties": false,
"allOf": [
{
"else": {
"properties": {
"refs": {
"maxItems": 0
}
}
},
"if": {
"properties": {
"status": {
"const": "declared"
}
}
},
"then": {
"properties": {
"refs": {
"minItems": 1
}
}
}
}
],
"properties": {
"refs": {
"items": {
"pattern": "^[a-z][a-z0-9]*(?:\\.[a-z][a-z0-9]*){3,}$",
"type": "string"
},
"type": "array",
"uniqueItems": true
},
"status": {
"enum": [
"declared",
"not-declared",
"not-applicable"
],
"type": "string"
}
},
"required": [
"status",
"refs"
],
"type": "object"
},
"typeRef": {
"const": "okham.engineering.type.execution.profile",
"type": "string"
},
"verification": {
"const": "not-executed-by-catalogue",
"type": "string"
}
},
"required": [
"typeRef",
"languageRef",
"mode",
"runtime",
"operatingSystems",
"platforms",
"architectures",
"requirements",
"evidence",
"verification"
],
"type": "object"
},
"snippet": {
"additionalProperties": false,
"properties": {
"compatibility": {
"items": {
"type": "string"
},
"type": "array"
},
"content": {
"oneOf": [
{
"type": "string"
},
{
"additionalProperties": false,
"properties": {
"body": {
"type": "string"
},
"format": {
"type": "string"
}
},
"required": [
"format",
"body"
],
"type": "object"
}
]
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"description": {
"type": "string"
},
"execution": {
"$ref": "#/$defs/executionProfile"
},
"id": {
"pattern": "^[a-z][a-z0-9]*(?:\\.[a-z][a-z0-9]*){3,}$",
"type": "string"
},
"language": {
"minLength": 1,
"type": "string"
},
"license": {
"type": "string"
},
"name": {
"minLength": 1,
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"version": {
"pattern": "^\\d+\\.\\d+\\.\\d+$",
"type": "string"
}
},
"required": [
"id",
"name",
"version",
"language",
"content",
"execution"
],
"type": "object"
}
},
"$id": "https://okham.org/schemas/osr/0.2.0/schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"description": "Unpublished 0.2.0 draft edition derived from the current OKHAM current application-package validator. See the specification for semantic checks and coverage limits.",
"properties": {
"description": {
"minLength": 1,
"type": "string"
},
"id": {
"pattern": "^[a-z][a-z0-9]*(?:\\.[a-z][a-z0-9]*){3,}$",
"type": "string"
},
"metadata": {
"additionalProperties": true,
"type": "object"
},
"name": {
"minLength": 1,
"type": "string"
},
"osr": {
"pattern": "^\\d+\\.\\d+\\.\\d+$",
"type": "string"
},
"snippets": {
"items": {
"$ref": "#/$defs/snippet"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"osr",
"id",
"name",
"description",
"snippets"
],
"title": "OSR Snippet Definition",
"type": "object",
"x-okham-execution-edition": "Local typed execution amendment: OSR snippets declare a language reference, runtime, operating-system, platform and architecture applicability. Source declarations are distinct from execution verification.",
"x-okham-identity-edition": "User-authorized local identity amendment: global contract identifiers use authority.domain.kind.name with lowercase alphanumeric dot-separated segments. Existing format and artifact versions and schema URIs are preserved. This annotation identifies a local amendment, not a published standards release."
}