Loading README.md +2 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,8 @@ This repository contains the OpenAPI Specification (OAS) for the NGSI-LD API spe ### Navigate API * [Swagger UI](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml) * [Swagger UI](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/rep/cim/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml) * [Swagger Editor](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/rep/cim/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml) * [Redocly](https://redocly.github.io/redoc/?url=https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml) ## Developers Loading examples/customSchemas/sensor-custom-schemas.yaml 0 → 100644 +39 −0 Original line number Diff line number Diff line openapi: 3.0.3 info: title: Example schemas for a temperature sensor version: 0.0.1 description: | Example schemas compliant with the NGSI-LD OAS V1.6.1 metamodel according to ETSI GS CIM 009 V1.6.1. paths: {} components: schemas: TemperatureSensor: description: | NGSI-LD Entity Type that represents a temperature sensor. allOf: - $ref: 'https://forge.etsi.org/rep/cim/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml#/components/schemas/Entity' - type: object properties: type: description: NGSI-LD Entity identifier. It has to be TemperatureSensor. type: string enum: - TemperatureSensor default: TemperatureSensor temperature: $ref: '#/components/schemas/Temperature' - required: - type - temperature Temperature: description: | NGSI-LD Property Type. The temperature measurement. allOf: - $ref: 'https://forge.etsi.org/rep/cim/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml#/components/schemas/Property' - type: object properties: value: type: number required: - value additionalProperties: false No newline at end of file ngsi-ld-api.yaml +1 −3 Original line number Diff line number Diff line Loading @@ -3271,6 +3271,7 @@ components: - $ref: '#/components/schemas/Subscription' - required: - type - entities application/json+ld: schema: allOf: Loading Loading @@ -5015,9 +5016,6 @@ components: Actually, when the time interval (in seconds) specified in this value field is reached. type: number minimum: 1 - required: - entities # - timeInterval Subscription.OnChange: allOf: - $ref: '#/components/schemas/Subscription.Common' Loading Loading
README.md +2 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,8 @@ This repository contains the OpenAPI Specification (OAS) for the NGSI-LD API spe ### Navigate API * [Swagger UI](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml) * [Swagger UI](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/rep/cim/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml) * [Swagger Editor](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/rep/cim/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml) * [Redocly](https://redocly.github.io/redoc/?url=https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml) ## Developers Loading
examples/customSchemas/sensor-custom-schemas.yaml 0 → 100644 +39 −0 Original line number Diff line number Diff line openapi: 3.0.3 info: title: Example schemas for a temperature sensor version: 0.0.1 description: | Example schemas compliant with the NGSI-LD OAS V1.6.1 metamodel according to ETSI GS CIM 009 V1.6.1. paths: {} components: schemas: TemperatureSensor: description: | NGSI-LD Entity Type that represents a temperature sensor. allOf: - $ref: 'https://forge.etsi.org/rep/cim/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml#/components/schemas/Entity' - type: object properties: type: description: NGSI-LD Entity identifier. It has to be TemperatureSensor. type: string enum: - TemperatureSensor default: TemperatureSensor temperature: $ref: '#/components/schemas/Temperature' - required: - type - temperature Temperature: description: | NGSI-LD Property Type. The temperature measurement. allOf: - $ref: 'https://forge.etsi.org/rep/cim/NGSI-LD/-/raw/1.6.1/ngsi-ld-api.yaml#/components/schemas/Property' - type: object properties: value: type: number required: - value additionalProperties: false No newline at end of file
ngsi-ld-api.yaml +1 −3 Original line number Diff line number Diff line Loading @@ -3271,6 +3271,7 @@ components: - $ref: '#/components/schemas/Subscription' - required: - type - entities application/json+ld: schema: allOf: Loading Loading @@ -5015,9 +5016,6 @@ components: Actually, when the time interval (in seconds) specified in this value field is reached. type: number minimum: 1 - required: - entities # - timeInterval Subscription.OnChange: allOf: - $ref: '#/components/schemas/Subscription.Common' Loading