Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NGSI Linked Data
NGSI-LD
Commits
9ef9f264
Commit
9ef9f264
authored
Nov 09, 2018
by
canterafonsj
Browse files
Notification
parent
8885d7af
Changes
2
Hide whitespace changes
Inline
Side-by-side
schema/Notification.json
0 → 100644
View file @
9ef9f264
{
"$schema"
:
"http://json-schema.org/schema#"
,
"id"
:
"https://uri.etsi.org/ngsi-ld/schema/Notification.json"
,
"title"
:
"NGSI-LD Notification"
,
"description"
:
"NGSI-LD Notification"
,
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"string"
,
"format"
:
"uri"
},
"type"
:
{
"type"
:
"string"
,
"const"
:
"Notification"
},
"@context"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
},
"notifiedAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"data"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#"
},
"minItems"
:
1
}
},
"required"
:
[
"id"
,
"type"
,
"notifiedAt"
,
"data"
]
}
scripts/validate_schema.sh
View file @
9ef9f264
...
...
@@ -7,3 +7,5 @@ ajv compile -s $SCHEMAS/Subscription.json -r $SCHEMAS/common.json -r $SCHEMAS/ge
ajv compile
-s
$SCHEMAS
/EntityTemporal.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/Entity.json
ajv compile
-s
$SCHEMAS
/ContextSourceRegistration.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/Notification.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