Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CIM - Context Information Management
NGSI-LD API
Commits
b47b22a1
Commit
b47b22a1
authored
Nov 08, 2018
by
canterafonsj
Browse files
Entity Temporal
parent
69d22f64
Changes
3
Hide whitespace changes
Inline
Side-by-side
schema/Entity.json
View file @
b47b22a1
{
{
"$schema"
:
"http://json-schema.org/schema#"
,
"$schema"
:
"http://json-schema.org/schema#"
,
"id"
:
"https://
uri
.etsi.org/
ngsi-ld
/schema/Entity.json"
,
"id"
:
"https://
forge
.etsi.org/
gitlab/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"
:
{
...
...
schema/EntityTemporal.json
0 → 100644
View file @
b47b22a1
{
"$schema"
:
"http://json-schema.org/schema#"
,
"id"
:
"https://uri.etsi.org/ngsi-ld/schema/EntityTemporal.json"
,
"title"
:
"NGSI-LD Entity"
,
"description"
:
"NGSI-LD Temporal Representation of an Entity"
,
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"string"
,
"format"
:
"uri"
},
"type"
:
{
"type"
:
"string"
,
"description"
:
"NGSI Entity type"
,
"minLength"
:
1
},
"@context"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
},
"location"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/GeoProperty"
},
"minItems"
:
1
},
"createdAt"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
},
"modifiedAt"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
}
},
"required"
:
[
"id"
,
"type"
],
"additionalProperties"
:
{
"anyOf"
:
[
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/Property"
},
"minItems"
:
1
},
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/Relationship"
},
"minItems"
:
1
},
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/GeoProperty"
},
"minItems"
:
1
}
]
}
}
scripts/validate_schema.sh
View file @
b47b22a1
...
@@ -3,3 +3,5 @@
...
@@ -3,3 +3,5 @@
ajv compile
-s
$SCHEMAS
/Entity.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/Entity.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/Subscription.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/Subscription.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/EntityTemporal.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/Entity.json
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment