Commit d239659c authored by canterafonsj's avatar canterafonsj
Browse files

Refactoring to make things easier for OAS

parent 6cfb8973
...@@ -3,8 +3,15 @@ ...@@ -3,8 +3,15 @@
"id": "https://uri.etsi.org/ngsi-ld/schema/EntityList.json", "id": "https://uri.etsi.org/ngsi-ld/schema/EntityList.json",
"title": "NGSI-LD EntityList", "title": "NGSI-LD EntityList",
"description": "NGSI-LD EntityList", "description": "NGSI-LD EntityList",
"definitions": {
"EntityList": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/Entity"
} }
}
},
"allOf": [{
"$ref": "#/definitions/EntityList"
}]
} }
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
"data": { "data": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/Entity"
}, },
"minItems": 1 "minItems": 1
} }
......
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
"content": { "content": {
"application/json;application/ld+json": { "application/json;application/ld+json": {
"schema": { "schema": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/Entity"
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment