{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "OCF", "$id": "https://smart-data-models.github.io/dataModel.OCF/OpaqueData/schema.json", "title": "Smart Data models - OpaqueData schema derived from the open connectivity foundation repository https://github.com/openconnectivityfoundation/IoTDataModels", "description": "This Resource defines opaque data that can be transfered between endpoints where the data itself is not interpretable by the OCF endpoints.The stringdata is a string of ASCII characters.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "rt": { "description": "Property. The Resource Type", "items": { "maxLength": 64, "type": "string", "enum": [ "oic.r.opaquedata" ] }, "minItems": 1, "uniqueItems": true, "readOnly": true, "type": "array" }, "payload": { "type": "string", "description": "Property. This Property contains the opaque data" }, "encoding": { "type": "string", "description": "Property. This Property describes the encoding of the payload, e.g. binary as base64, json, xml, utf-8" }, "payloadtype": { "type": "string", "description": "Property. This Property describes the identification of the payload, e.g. what the payload is representing " }, "size": { "type": "integer", "description": "Property. The size in bytes of the decoded binary object" }, "hash": { "type": "string", "description": "Property. The hash code of the blob. If present, it is used to check the decoded content of the object data point for integrity. The algorithm used for generating the hash value is SHA-2 [15]. The data point contains the hash as a hex encoded value" }, "system": { "type": "string", "description": "Property. The eco system that is using the payload" }, "if": { "description": "Property. The OCF Interface set supported by this Resource", "items": { "enum": [ "oic.if.baseline", "oic.if.rw" ], "type": "string" }, "minItems": 2, "uniqueItems": true, "readOnly": true, "type": "array" }, "type": { "type": "string", "enum": [ "OpaqueData" ], "description": "Property. NGSI entity type. It has to be OpaqueData" } } } ], "license": "https://github.com/openconnectivityfoundation/core/blob/e28a9e0a92e17042ba3e83661e4c0fbce8bdc4ba/LICENSE.md", "derivedFrom": "https://raw.githubusercontent.com/openconnectivityfoundation/IoTDataModels/master/OpaqueDataResURI.swagger.json", "required": [ "payload", "encoding", "system", "id", "type" ] }