Loading scripts/validate_schema.sh +2 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ ajv compile -s $SCHEMAS/registrations/ContextSourceNotification.json -r $SCHEMAS ajv compile -s $SCHEMAS/EntityList.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json ajv compile -s $SCHEMAS/subscriptions/SubscriptionList.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/subscriptions/Subscription.json ajv compile -s $SCHEMAS/temporal/EntityTemporalList.json -r $SCHEMAS/temporal/EntityTemporal.json -r $SCHEMAS/Entity.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json ajv compile -s $SCHEMAS/BatchOperationResult.json -r $SCHEMAS/common.json Loading spec/updated/subscription-by-id-spec.json 0 → 100644 +105 −0 Original line number Diff line number Diff line { "openapi": "3.0.1", "info": { "title": "NGSI-LD Subscription By Id", "version": "latest" }, "components": { "parameters": { "subscriptionId": { "name": "subscriptionId", "description": "Subscription Id", "in": "path", "required": true, "schema": { "type": "string", "format": "uri" } } } }, "paths": { "/subscriptions/{subscriptionId}": { "get": { "description": "Retrieves a specific Subscription from an NGSI-LD system", "operationId": "retrieveSubscription", "parameters": [ { "$ref": "#/components/parameters/subscriptionId" } ], "responses": { "200": { "description": "OK", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/subscriptions/Subscription.json#/definitions/Subscription" }, "examples": { "simple": { "externalValue": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/examples/Subscription-example_C.4.json" } } } } }, "400": { "description": "Bad request", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } } } } }, "delete": { "description": "Removes a specific Subscription from an NGSI-LD system", "operationId": "removeSubscription", "parameters": [ { "$ref": "#/components/parameters/subscriptionId" } ], "responses": { "204": { "description": "No Content. The Subscription was removed successfully" }, "400": { "description": "Bad Request", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } } } } } } } } No newline at end of file Loading
scripts/validate_schema.sh +2 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ ajv compile -s $SCHEMAS/registrations/ContextSourceNotification.json -r $SCHEMAS ajv compile -s $SCHEMAS/EntityList.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json ajv compile -s $SCHEMAS/subscriptions/SubscriptionList.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/subscriptions/Subscription.json ajv compile -s $SCHEMAS/temporal/EntityTemporalList.json -r $SCHEMAS/temporal/EntityTemporal.json -r $SCHEMAS/Entity.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json ajv compile -s $SCHEMAS/BatchOperationResult.json -r $SCHEMAS/common.json Loading
spec/updated/subscription-by-id-spec.json 0 → 100644 +105 −0 Original line number Diff line number Diff line { "openapi": "3.0.1", "info": { "title": "NGSI-LD Subscription By Id", "version": "latest" }, "components": { "parameters": { "subscriptionId": { "name": "subscriptionId", "description": "Subscription Id", "in": "path", "required": true, "schema": { "type": "string", "format": "uri" } } } }, "paths": { "/subscriptions/{subscriptionId}": { "get": { "description": "Retrieves a specific Subscription from an NGSI-LD system", "operationId": "retrieveSubscription", "parameters": [ { "$ref": "#/components/parameters/subscriptionId" } ], "responses": { "200": { "description": "OK", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/subscriptions/Subscription.json#/definitions/Subscription" }, "examples": { "simple": { "externalValue": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/examples/Subscription-example_C.4.json" } } } } }, "400": { "description": "Bad request", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } } } } }, "delete": { "description": "Removes a specific Subscription from an NGSI-LD system", "operationId": "removeSubscription", "parameters": [ { "$ref": "#/components/parameters/subscriptionId" } ], "responses": { "204": { "description": "No Content. The Subscription was removed successfully" }, "400": { "description": "Bad Request", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/json;application/ld+json": { "schema": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/ProblemDetails" } } } } } } } } } No newline at end of file