Release candidate 0.2.0-rc.2
OFR · JSON schema
{
"$defs": {
"operation": {
"additionalProperties": true,
"properties": {
"description": {
"description": "Operation description",
"type": "string"
},
"id": {
"description": "Unique operation identifier",
"pattern": "^[a-z][a-z0-9]*(?:\\.[a-z][a-z0-9]*){3,}$",
"type": "string"
},
"inputs": {
"items": {
"$ref": "#/$defs/parameter"
},
"type": "array"
},
"intent": {
"description": "OIC intent compatibility",
"type": "string"
},
"name": {
"description": "Human-readable operation name",
"type": "string"
},
"outputs": {
"items": {
"$ref": "#/$defs/parameter"
},
"type": "array"
},
"sideEffects": {
"description": "Declared side effects",
"items": {
"type": "string"
},
"type": "array"
},
"version": {
"description": "Operation version",
"type": "string"
}
},
"required": [
"id",
"name",
"intent"
],
"type": "object"
},
"parameter": {
"additionalProperties": true,
"properties": {
"name": {
"type": "string"
},
"required": {
"default": true,
"type": "boolean"
},
"type": {
"description": "OTC type reference",
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
}
},
"$id": "https://okham.org/schemas/ofr/0.2.0/schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Unpublished 0.2.0 draft edition derived from the current OKHAM runtime catalogue. See the specification for semantic checks and coverage limits.",
"properties": {
"ofr": {
"additionalProperties": true,
"properties": {
"operations": {
"items": {
"$ref": "#/$defs/operation"
},
"type": "array"
},
"version": {
"description": "OFR specification version",
"type": "string"
}
},
"required": [
"version",
"operations"
],
"type": "object"
}
},
"title": "OFR Function Definition",
"type": "object",
"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.",
"required": [
"ofr"
]
}