Loading schema/BatchOperationResult.json 0 → 100644 +33 −0 Original line number Diff line number Diff line { "$schema": "http://json-schema.org/schema#", "id": "https://uri.etsi.org/ngsi-ld/schema/BatchOperationResult.json", "title": "NGSI-LD Batch Operation Result", "description": "NGSI-LD Batch Operation Result", "definitions": { "BatchEntityError": { "entityId": { "type": "string", "format": "uri" }, "error": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } }, "type": "object", "properties": { "success": { "type": "array", "items": { "type": "string", "format": "uri" } }, "error": { "type": "array", "items": { "$ref": "#/definitions/BatchEntityError" } } } } schema/common.json +21 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,27 @@ "format": "regex" } }, "required": ["type"] "required": [ "type" ] } }, "ProblemDetails": { "type": "object", "properties": { "type": { "type": "string", "format": "uri" }, "title": { "type": "string" }, "detail": { "type": "string" } }, "required": [ "type" ] } } scripts/validate_schema.sh +1 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,4 @@ ajv compile -s $SCHEMAS/ContextSourceNotification.json -r $SCHEMAS/common.json - ajv compile -s $SCHEMAS/EntityList.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json ajv compile -s $SCHEMAS/BatchOperationResult.json -r $SCHEMAS/common.json Loading
schema/BatchOperationResult.json 0 → 100644 +33 −0 Original line number Diff line number Diff line { "$schema": "http://json-schema.org/schema#", "id": "https://uri.etsi.org/ngsi-ld/schema/BatchOperationResult.json", "title": "NGSI-LD Batch Operation Result", "description": "NGSI-LD Batch Operation Result", "definitions": { "BatchEntityError": { "entityId": { "type": "string", "format": "uri" }, "error": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } }, "type": "object", "properties": { "success": { "type": "array", "items": { "type": "string", "format": "uri" } }, "error": { "type": "array", "items": { "$ref": "#/definitions/BatchEntityError" } } } }
schema/common.json +21 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,27 @@ "format": "regex" } }, "required": ["type"] "required": [ "type" ] } }, "ProblemDetails": { "type": "object", "properties": { "type": { "type": "string", "format": "uri" }, "title": { "type": "string" }, "detail": { "type": "string" } }, "required": [ "type" ] } }
scripts/validate_schema.sh +1 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,4 @@ ajv compile -s $SCHEMAS/ContextSourceNotification.json -r $SCHEMAS/common.json - ajv compile -s $SCHEMAS/EntityList.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json ajv compile -s $SCHEMAS/BatchOperationResult.json -r $SCHEMAS/common.json