Schema source_core.json
Resolve referenced schemas (may reorder keys)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Describes a Source",
"title": "Source resource",
"allOf": [
{ "$ref": "resource_core.json" },
{
"type": "object",
"required": [
"caps",
"device_id",
"parents",
"clock_name"
],
"properties": {
"grain_rate" : {
"description": "Maximum number of Grains per second for Flows derived from this Source. Corresponding Flow Grain rates may override this attribute. Grain rate matches the frame rate for video (see NMOS Content Model). Specified for periodic Sources only.",
"type": "object",
"required" : [
"numerator"
],
"properties" : {
"numerator" : {
"description" : "Numerator",
"type" : "integer"
},
"denominator" : {
"description" : "Denominator",
"type" : "integer",
"default" : 1
}
}
},
"caps": {
"description": "Capabilities (not yet defined)",
"type": "object"
},
"device_id": {
"description": "Globally unique identifier for the Device which initially created the Source. This attribute is used to ensure referential integrity by registry implementations.",
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"