diff --git a/UserContext/schema.json b/UserContext/schema.json index 7b7085c..58420f0 100644 --- a/UserContext/schema.json +++ b/UserContext/schema.json @@ -1,83 +1,83 @@ { - "$schema": "http://json-schema.org/schema#", - "$schemaVersion": "0.0.2", - "modelTags": "", - "$id": "https://smart-data-models.github.io/dataModel.User/UserContext/schema.json", - "title": "Smart Data Models. User Context schema", - "description": "Information on the context of an anonymized in a given point in time", - "type": "object", - "allOf": [ - { - "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schemaVersion": "0.0.2", + "modelTags": "", + "$id": "https://smart-data-models.github.io/dataModel.User/UserContext/schema.json", + "title": "Smart Data Models. User Context schema", + "description": "Information on the context of an anonymized in a given point in time", + "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": { + "type": { + "type": "string", + "enum": [ + "UserContext" + ], + "description": "Property. NGSI Entity type. It has to be UserContext" }, - { - "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" + "refActivity": { + "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. Model:'https://schema.org/URL'. An object representing the current activity performed by the User" + }, + "refUserDevice": { + "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. Model:'https://schema.org/URL'. An object representing the current device used by the User" }, - { - "properties": { - "type": { - "type": "string", - "enum": [ - "UserContext" - ], - "description": "Property. NGSI Entity type. It has to be UserContext" - }, - "refActivity": { - "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. Model:'https://schema.org/URL'. An object representing the current activity performed by the User" - }, - "refUserDevice": { - "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. Model:'https://schema.org/URL'. An object representing the current device used by the User" - }, - "refUser": { - "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. Model:'https://schema.org/URL'. Reference to the (anonymized) User to which this UserContext is associated. Normative References: [https://tools.ietf.org/html/rfc3986](https://tools.ietf.org/html/rfc3986)" - } + "refUser": { + "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. Model:'https://schema.org/URL'. Reference to the (anonymized) User to which this UserContext is associated. Normative References: [https://tools.ietf.org/html/rfc3986](https://tools.ietf.org/html/rfc3986)" } - ], - "required": [ - "id", - "type" - ] + } + } + ], + "required": [ + "id", + "type" + ] } \ No newline at end of file