{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "", "$id": "https://raw.githubusercontent.com/smart-data-models/dataModel.CallComplaints/master/Complaint/schema.json", "title": "Call Complaints - Complaint", "description": "This entity contains a harmonised description of a generic Complaint made for the Call Complaints domain.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "properties": { "type": { "type": "string", "description": "Property. NGSI Entity Type. It must be equal to Complaint.", "enum": [ "Complaint" ] }, "status": { "type": "string", "description": "Property. Status of the Complaint. Examples: Pending, In progress." }, "timestamp": { "type": "string", "format": "date-time", "description": "Property. Model:'https://schema.org/DateTime'. The timestamp of the Complaint." }, "category": { "type": "string", "description": "Property. Model:'https://schema.org/Text'. The category of the Complaint. Examples:Brown water, Particles, Odor / Taste, Illness, Meter leak, Network leak, No water, Low pressure, High pressure, Broken switch, Water quality, Waste of water, Broken meter, Meter repositioning, Sidewalk repair, Pavement repair." }, "isMadeBy": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. The Id of the User that made this Complaint." }, "isPartOf": { "type": "array", "description": "Property. Array of Strings (Relationships between Entities). The IDs of the Collections, that this Complaint is part of.", "items": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Property. Unique identifier of the entity" } }, "isFiledTo": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. The ID of the Organization (e.g., Complaints Department), that this Complaint is filed to." } } } ], "required": [ "id", "category", "location", "timestamp", "type" ] }