Commit f448943b authored by tropea's avatar tropea

Merge branch 'master' into 'master'

Merge of private repo to Master

See merge request !4
parents c4a4c05c 8b5fde29
Pipeline #4959 passed with stage
# This file is a template, and might need editing before it works on your project. # This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at: # Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/ # https://hub.docker.com/r/library/node/tags/
image: node:8 image: node::13.7-alpine
# This folder is cached between builds # This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache # http://docs.rep.com/ce/ci/yaml/README.html#cache
cache: cache:
paths: paths:
- node_modules/ - node_modules/
all_tests: before_script:
- yarn
stages:
- test
test:
stage: test
script: script:
- npm install - echo "Running tests..."
- npm test - yarn test
allow_failure: true
# CONTRIBUTE
## Install app
```
$ yarn
```
## Test
### Test all scripts
```
$ yarn test
```
### Test scripts individually
```
$ yarn validate-examples
$ yarn validate-locally
$ yarn validate-online
$ yarn validate-schema
```
### Bundle ngsi-ld-spec-open-api.json
```
$ yarn combine-files
```
\ No newline at end of file
...@@ -4,12 +4,14 @@ This repository contains OpenAPI descriptions for the NGSI-LD interface defined ...@@ -4,12 +4,14 @@ This repository contains OpenAPI descriptions for the NGSI-LD interface defined
## Online resources ## Online resources
* [Navigate the API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/full_api.json). * [Navigate the API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/spec/updated/full_api.json).
## Contribute ## Contribute
To get an account on ETSI Forge and to learn how to contribute visit the [Forge Getting started wiki](https://forge.etsi.org/wiki/index.php/Get_started). To get an account on ETSI Forge and to learn how to contribute visit the [Forge Getting started wiki](https://forge.etsi.org/wiki/index.php/Get_started).
More info @ [CONTIBUTE](./CONTRIBUTE.md)
Change requests are managed using [Gerrit](https://forge.etsi.org/gerrit). Change requests are managed using [Gerrit](https://forge.etsi.org/gerrit).
## Report issues ## Report issues
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -72,6 +72,6 @@ ...@@ -72,6 +72,6 @@
"http://example.org/ngsi-ld/commonTerms.jsonld", "http://example.org/ngsi-ld/commonTerms.jsonld",
"http://example.org/ngsi-ld/vehicle.jsonld", "http://example.org/ngsi-ld/vehicle.jsonld",
"http://example.org/ngsi-ld/parking.jsonld", "http://example.org/ngsi-ld/parking.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
...@@ -72,6 +72,6 @@ ...@@ -72,6 +72,6 @@
"http://example.org/ngsi-ld/commonTerms.jsonld", "http://example.org/ngsi-ld/commonTerms.jsonld",
"http://example.org/ngsi-ld/vehicle.jsonld", "http://example.org/ngsi-ld/vehicle.jsonld",
"http://example.org/ngsi-ld/parking.jsonld", "http://example.org/ngsi-ld/parking.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
}] }]
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
}, },
"@context": [ "@context": [
"https://example.org/ld/vehicle.jsonld", "https://example.org/ld/vehicle.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
}, },
"@context": [ "@context": [
"https://example.org/ld/vehicle.jsonld", "https://example.org/ld/vehicle.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
] ]
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
], ],
"@context": [ "@context": [
"http://example.org/ngsi-ld/vehicle.jsonld", "http://example.org/ngsi-ld/vehicle.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
], ],
"@context": [ "@context": [
"http://example.org/ngsi-ld/vehicle.jsonld", "http://example.org/ngsi-ld/vehicle.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
] ]
...@@ -29,6 +29,6 @@ ...@@ -29,6 +29,6 @@
}, },
"@context": [ "@context": [
"http://example.org/ngsi-ld/vehicle.jsonld", "http://example.org/ngsi-ld/vehicle.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
...@@ -31,6 +31,6 @@ ...@@ -31,6 +31,6 @@
}, },
"@context": [ "@context": [
"http://example.org/ngsi-ld/parking.jsonld", "http://example.org/ngsi-ld/parking.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
}, },
"@context": [ "@context": [
"http://example.org/ngsi-ld/parking.jsonld", "http://example.org/ngsi-ld/parking.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
...@@ -30,6 +30,6 @@ ...@@ -30,6 +30,6 @@
}, },
"@context": [ "@context": [
"http://example.org/ngsi-ld/vehicle.jsonld", "http://example.org/ngsi-ld/vehicle.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
}, },
"@context": [ "@context": [
"http://example.org/cim/vehicle.jsonld", "http://example.org/cim/vehicle.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
] ]
...@@ -23,6 +23,6 @@ ...@@ -23,6 +23,6 @@
"http://example.org/ngsi-ld/vehicle.jsonld", "http://example.org/ngsi-ld/vehicle.jsonld",
"http://example.org/ngsi-ld/parking.jsonld", "http://example.org/ngsi-ld/parking.jsonld",
"https://schema.org", "https://schema.org",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
"speed#2": "http://example.org/speed", "speed#2": "http://example.org/speed",
"source": "http://example.org/hasSource" "source": "http://example.org/hasSource"
}, },
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
\ No newline at end of file
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
"http://example.org/ngsi-ld/commonTerms.jsonld", "http://example.org/ngsi-ld/commonTerms.jsonld",
"http://example.org/ngsi-ld/vehicle.jsonld", "http://example.org/ngsi-ld/vehicle.jsonld",
"http://example.org/ngsi-ld/parking.jsonld", "http://example.org/ngsi-ld/parking.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
] ]
} }
{
"compilerOptions": {
"baseUrl": "."
}
}
{ {
"name": "ngsi-ld", "name": "ngsi-ld",
"version": "1.0.0", "version": "1.0.1",
"description": "NGSI-LD Schema Compilation", "description": "NGSI-LD Schema Compilation",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "scripts/validate_schema.sh" "test": "./scripts/validate_all.sh",
"validate-examples": "./scripts/validate_examples.sh",
"validate-locally": "./scripts/validate_locally.sh",
"validate-online": "./scripts/validate_online.sh",
"validate-schema": "./scripts/validate_schema.sh",
"combine-files": "./scripts/combine_files.sh"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD" "url": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD"
}, },
"keywords": [ "keywords": [
"NGSI-LD" "NGSI-LD"
...@@ -16,6 +21,7 @@ ...@@ -16,6 +21,7 @@
"author": "Jose Manuel Cantera", "author": "Jose Manuel Cantera",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"ajv": "^6.5.5" "ajv": "^6.12.5",
"swagger-cli": "^4.0.4"
} }
} }
{ {
"$schema": "http://json-schema.org/schema#", "$schema": "http://json-schema.org/schema#",
"$id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/BatchOperationResult.json", "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/BatchOperationResult.json",
"title": "NGSI-LD Batch Operation Result", "title": "NGSI-LD Batch Operation Result",
"description": "NGSI-LD Batch Operation Result", "description": "NGSI-LD Batch Operation Result",
"definitions": { "definitions": {
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"format": "uri" "format": "uri"
}, },
"error": { "error": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails"
} }
}, },
"BatchOperationResult": { "BatchOperationResult": {
......
{ {
"$schema": "http://json-schema.org/schema#", "$schema": "http://json-schema.org/schema#",
"$id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json", "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json",
"title": "NGSI-LD Entity", "title": "NGSI-LD Entity",
"description": "NGSI-LD Entity", "description": "NGSI-LD Entity",
"definitions": { "definitions": {
...@@ -29,13 +29,13 @@ ...@@ -29,13 +29,13 @@
] ]
}, },
"observedAt": { "observedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
}, },
"createdAt": { "createdAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
}, },
"modifiedAt": { "modifiedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
}, },
"datasetId": { "datasetId": {
"$ref": "#/definitions/datasetId" "$ref": "#/definitions/datasetId"
...@@ -71,13 +71,13 @@ ...@@ -71,13 +71,13 @@
"format": "uri" "format": "uri"
}, },
"observedAt": { "observedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
}, },
"createdAt": { "createdAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
}, },
"modifiedAt": { "modifiedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
}, },
"datasetId": { "datasetId": {
"$ref": "#/definitions/datasetId" "$ref": "#/definitions/datasetId"
...@@ -109,16 +109,16 @@ ...@@ -109,16 +109,16 @@
"const": "GeoProperty" "const": "GeoProperty"
}, },
"value": { "value": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json"
}, },
"observedAt": { "observedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
}, },
"createdAt": { "createdAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
}, },
"modifiedAt": { "modifiedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
}, },
"datasetId": { "datasetId": {
"$ref": "#/definitions/datasetId" "$ref": "#/definitions/datasetId"
...@@ -142,11 +142,11 @@ ...@@ -142,11 +142,11 @@
] ]
} }
}, },
"EntityFragment": { "Entity": {
"type": "object", "type": "object",
"properties": { "properties": {
"@context": { "@context": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
}, },
"location": { "location": {
"$ref": "#/definitions/GeoProperty" "$ref": "#/definitions/GeoProperty"
...@@ -162,15 +162,19 @@ ...@@ -162,15 +162,19 @@
"format": "uri" "format": "uri"
}, },
"type": { "type": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Name" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Name"
}, },
"createdAt": { "createdAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
}, },
"modifiedAt": { "modifiedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
} }
}, },
"required": [
"id",
"type"
],
"additionalProperties": { "additionalProperties": {
"anyOf": [ "anyOf": [
{ {
...@@ -185,21 +189,8 @@ ...@@ -185,21 +189,8 @@
] ]
}, },
"propertyNames": { "propertyNames": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/PropertyNames" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/PropertyNames"
} }
},
"Entity": {
"allOf": [
{
"required": [
"id",
"type"
]
},
{
"$ref": "#/definitions/EntityFragment"
}
]
} }
}, },
"allOf": [ "allOf": [
...@@ -207,4 +198,4 @@ ...@@ -207,4 +198,4 @@
"$ref": "#/definitions/Entity" "$ref": "#/definitions/Entity"
} }
] ]
} }
\ No newline at end of file
{ {
"$schema": "http://json-schema.org/schema#", "$schema": "http://json-schema.org/schema#",
"$id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/EntityList.json", "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/EntityList.json",
"title": "NGSI-LD EntityList", "title": "NGSI-LD EntityList",
"description": "NGSI-LD EntityList", "description": "NGSI-LD EntityList",
"definitions": { "definitions": {
"EntityList": { "EntityList": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/Entity" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/Entity"
} }
} }
}, },
......
{ {
"$schema": "http://json-schema.org/schema#", "$schema": "http://json-schema.org/schema#",
"$id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity_keyValues.json", "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/Entity_keyValues.json",
"title": "NGSI-LD Entity Key Values", "title": "NGSI-LD Entity Key Values",
"description": "NGSI-LD Entity Simplified Representation", "description": "NGSI-LD Entity Simplified Representation",
"type": "object", "type": "object",
...@@ -10,25 +10,25 @@ ...@@ -10,25 +10,25 @@
"format": "uri" "format": "uri"
}, },
"type": { "type": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Name" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Name"
}, },
"@context": { "@context": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
}, },
"location": { "location": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
}, },
"observationSpace": { "observationSpace": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
}, },
"operationSpace": { "operationSpace": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
}, },
"createdAt": { "createdAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
}, },
"modifiedAt": { "modifiedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
} }
}, },
"required": [ "required": [
...@@ -45,6 +45,6 @@ ...@@ -45,6 +45,6 @@
] ]
}, },
"propertyNames": { "propertyNames": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/PropertyNames" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/PropertyNames"
} }
} }
{ {
"$schema": "http://json-schema.org/schema#", "$schema": "http://json-schema.org/schema#",
"$id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/UpdateResult.json", "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/UpdateResult.json",
"title": "NGSI-LD Update Result", "title": "NGSI-LD Update Result",
"description": "NGSI-LD Update Result", "description": "NGSI-LD Update Result",
"definitions": { "definitions": {
......
{ {
"$schema": "http://json-schema.org/schema#", "$schema": "http://json-schema.org/schema#",
"$id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json", "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json",
"title": "NGSI-LD Common Definitions", "title": "NGSI-LD Common Definitions",
"description": "NGSI-LD Common", "description": "NGSI-LD Common",
"definitions": { "definitions": {
...@@ -130,16 +130,16 @@ ...@@ -130,16 +130,16 @@
"coordinates": { "coordinates": {
"oneOf": [ "oneOf": [
{ {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/position" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/position"
}, },
{ {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/positionArray" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/positionArray"
}, },
{ {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/lineString" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/lineString"
}, },
{ {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/polygon" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/polygon"
} }
] ]
}, },
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json", "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json",
"title": "geometry", "title": "geometry",
"description": "One geometry as defined by GeoJSON. Licensed as per original source is https://github.com/fge/sample-json-schemas/blob/master/geojson/geometry.json", "description": "One geometry as defined by GeoJSON. Licensed as per original source is https://github.com/fge/sample-json-schemas/blob/master/geojson/geometry.json",
"type": "object", "type": "object",
......
{ {
"$schema": "http://json-schema.org/schema#", "$schema": "http://json-schema.org/schema#",
"$id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/registrations/ContextSourceNotification.json", "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/registrations/ContextSourceNotification.json",
"title": "NGSI-LD Context Source Notification", "title": "NGSI-LD Context Source Notification",
"description": "NGSI-LD Context Source Notification", "description": "NGSI-LD Context Source Notification",
"type": "object", "type": "object",
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"format": "uri" "format": "uri"
}, },
"@context": { "@context": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
}, },
"notifiedAt": { "notifiedAt": {
"type": "string", "type": "string",
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
"data": { "data": {
"type": "array", "type": "array",