diff --git a/api-body-document.js b/api-body-document.js
index 7c8b31d..166d449 100644
--- a/api-body-document.js
+++ b/api-body-document.js
@@ -547,11 +547,18 @@ class ApiBodyDocument extends AmfHelperMixin(LitElement) {
_selectedMediaType,
_selectedBodyId,
renderReadOnly,
+ _renderMediaSelector
} = this;
const hasBodyName = !!_bodyName;
const hasDescription = !!_description;
const hasTypeName = !!_typeName;
return html`
+
+ Media type:
+ ${_renderMediaSelector ?
+ this._mediaTypesTemplate() :
+ html`${_selectedMediaType}`}
+
${hasBodyName ? html`${_bodyName}
` : ''}
${hasDescription ? html`
diff --git a/demo/APIC-463-compact.json b/demo/APIC-463-compact.json
new file mode 100644
index 0000000..38a4431
--- /dev/null
+++ b/demo/APIC-463-compact.json
@@ -0,0 +1,570 @@
+[
+{
+"@id": "",
+"@type": [
+"doc:Document",
+"doc:Fragment",
+"doc:Module",
+"doc:Unit"
+],
+"doc:encodes": [
+{
+"@id": "#1",
+"@type": [
+"apiContract:WebAPI",
+"doc:RootDomainElement",
+"doc:DomainElement"
+],
+"core:name": [
+{
+"@value": "missing-body"
+}
+],
+"apiContract:endpoint": [
+{
+"@id": "#2",
+"@type": [
+"apiContract:EndPoint",
+"doc:DomainElement"
+],
+"apiContract:path": [
+{
+"@value": "/test"
+}
+],
+"apiContract:supportedOperation": [
+{
+"@id": "#3",
+"@type": [
+"apiContract:Operation",
+"doc:DomainElement"
+],
+"apiContract:method": [
+{
+"@value": "post"
+}
+],
+"core:description": [
+{
+"@value": "Upload a dataset[.txt,.csv] or config[.conf] file. Maximum file size is 2 GB."
+}
+],
+"apiContract:expects": [
+{
+"@id": "#4",
+"@type": [
+"apiContract:Request",
+"apiContract:Message",
+"doc:DomainElement"
+],
+"apiContract:payload": [
+{
+"@id": "#5",
+"@type": [
+"apiContract:Payload",
+"doc:DomainElement"
+],
+"core:mediaType": [
+{
+"@value": "binary/octet-stream"
+}
+],
+"raml-shapes:schema": [
+{
+"@id": "#6",
+"@type": [
+"raml-shapes:AnyShape",
+"shacl:Shape",
+"raml-shapes:Shape",
+"doc:DomainElement"
+],
+"shacl:name": [
+{
+"@value": "schema"
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#6/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:auto-generated-name": [
+{
+"@id": "#6/source-map/auto-generated-name/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#6"
+}
+],
+"sourcemaps:value": [
+{
+"@value": ""
+}
+]
+}
+],
+"sourcemaps:lexical": [
+{
+"@id": "#6/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#6"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(7,6)-(8,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#5/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:lexical": [
+{
+"@id": "#5/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#5"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(7,6)-(8,0)]"
+}
+]
+}
+]
+}
+]
+},
+{
+"@id": "#7",
+"@type": [
+"apiContract:Payload",
+"doc:DomainElement"
+],
+"core:mediaType": [
+{
+"@value": "multipart/form-data"
+}
+],
+"raml-shapes:schema": [
+{
+"@id": "#8",
+"@type": [
+"shacl:NodeShape",
+"raml-shapes:AnyShape",
+"shacl:Shape",
+"raml-shapes:Shape",
+"doc:DomainElement"
+],
+"shacl:closed": [
+{
+"@value": false
+}
+],
+"shacl:property": [
+{
+"@id": "#9",
+"@type": [
+"shacl:PropertyShape",
+"shacl:Shape",
+"raml-shapes:Shape",
+"doc:DomainElement"
+],
+"shacl:path": [
+{
+"@id": "http://a.ml/vocabularies/data#file"
+}
+],
+"raml-shapes:range": [
+{
+"@id": "#10",
+"@type": [
+"raml-shapes:FileShape",
+"raml-shapes:AnyShape",
+"shacl:Shape",
+"raml-shapes:Shape",
+"doc:DomainElement"
+],
+"shacl:name": [
+{
+"@value": "file"
+}
+],
+"core:description": [
+{
+"@value": "The file to upload."
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#10/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#10/source-map/type-property-lexical-info/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#10"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(13,12)-(13,16)]"
+}
+]
+}
+],
+"sourcemaps:lexical": [
+{
+"@id": "#10/source-map/lexical/element_1",
+"sourcemaps:element": [
+{
+"@value": "amf://id#10"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(10,15)-(13,22)]"
+}
+]
+},
+{
+"@id": "#10/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "core:description"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(11,12)-(12,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"shacl:minCount": [
+{
+"@value": 1
+}
+],
+"shacl:name": [
+{
+"@value": "file"
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#9/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:lexical": [
+{
+"@id": "#9/source-map/lexical/element_1",
+"sourcemaps:element": [
+{
+"@value": "amf://id#9"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(10,10)-(13,22)]"
+}
+]
+},
+{
+"@id": "#9/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "shacl:minCount"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(12,12)-(13,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"shacl:name": [
+{
+"@value": "schema"
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#8/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:auto-generated-name": [
+{
+"@id": "#8/source-map/auto-generated-name/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#8"
+}
+],
+"sourcemaps:value": [
+{
+"@value": ""
+}
+]
+}
+],
+"sourcemaps:lexical": [
+{
+"@id": "#8/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#8"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(8,6)-(13,22)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#7/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:lexical": [
+{
+"@id": "#7/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#7"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(8,6)-(13,22)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#4/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:lexical": [
+{
+"@id": "#4/source-map/lexical/element_1",
+"sourcemaps:element": [
+{
+"@value": "amf://id#4"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(5,0)-(13,22)]"
+}
+]
+},
+{
+"@id": "#4/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "apiContract:payload"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(6,4)-(13,22)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#3/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:synthesized-field": [
+{
+"@id": "#3/source-map/synthesized-field/element_0",
+"sourcemaps:element": [
+{
+"@value": "apiContract:expects"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "true"
+}
+]
+}
+],
+"sourcemaps:lexical": [
+{
+"@id": "#3/source-map/lexical/element_1",
+"sourcemaps:element": [
+{
+"@value": "amf://id#3"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(4,2)-(13,22)]"
+}
+]
+},
+{
+"@id": "#3/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "core:description"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(5,4)-(6,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#2/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:lexical": [
+{
+"@id": "#2/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#2"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(3,0)-(13,22)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"sourcemaps:sources": [
+{
+"@id": "#1/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:source-vendor": [
+{
+"@id": "#1/source-map/source-vendor/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#1"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "RAML 1.0"
+}
+]
+}
+],
+"sourcemaps:lexical": [
+{
+"@id": "#1/source-map/lexical/element_1",
+"sourcemaps:element": [
+{
+"@value": "amf://id#1"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(2,0)-(13,22)]"
+}
+]
+},
+{
+"@id": "#1/source-map/lexical/element_0",
+"sourcemaps:element": [
+{
+"@value": "core:name"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(2,0)-(3,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"doc:version": [
+{
+"@value": "2.1.0"
+}
+],
+"doc:root": [
+{
+"@value": true
+}
+],
+"@context": {
+"@base": "amf://id",
+"shacl": "http://www.w3.org/ns/shacl#",
+"raml-shapes": "http://a.ml/vocabularies/shapes#",
+"doc": "http://a.ml/vocabularies/document#",
+"apiContract": "http://a.ml/vocabularies/apiContract#",
+"core": "http://a.ml/vocabularies/core#",
+"sourcemaps": "http://a.ml/vocabularies/document-source-maps#"
+}
+}
+]
diff --git a/demo/APIC-463.json b/demo/APIC-463.json
new file mode 100644
index 0000000..627d358
--- /dev/null
+++ b/demo/APIC-463.json
@@ -0,0 +1,561 @@
+[
+{
+"@id": "amf://id",
+"@type": [
+"http://a.ml/vocabularies/document#Document",
+"http://a.ml/vocabularies/document#Fragment",
+"http://a.ml/vocabularies/document#Module",
+"http://a.ml/vocabularies/document#Unit"
+],
+"http://a.ml/vocabularies/document#encodes": [
+{
+"@id": "amf://id#1",
+"@type": [
+"http://a.ml/vocabularies/apiContract#WebAPI",
+"http://a.ml/vocabularies/document#RootDomainElement",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://a.ml/vocabularies/core#name": [
+{
+"@value": "missing-body"
+}
+],
+"http://a.ml/vocabularies/apiContract#endpoint": [
+{
+"@id": "amf://id#2",
+"@type": [
+"http://a.ml/vocabularies/apiContract#EndPoint",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://a.ml/vocabularies/apiContract#path": [
+{
+"@value": "/test"
+}
+],
+"http://a.ml/vocabularies/apiContract#supportedOperation": [
+{
+"@id": "amf://id#3",
+"@type": [
+"http://a.ml/vocabularies/apiContract#Operation",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://a.ml/vocabularies/apiContract#method": [
+{
+"@value": "post"
+}
+],
+"http://a.ml/vocabularies/core#description": [
+{
+"@value": "Upload a dataset[.txt,.csv] or config[.conf] file. Maximum file size is 2 GB."
+}
+],
+"http://a.ml/vocabularies/apiContract#expects": [
+{
+"@id": "amf://id#4",
+"@type": [
+"http://a.ml/vocabularies/apiContract#Request",
+"http://a.ml/vocabularies/apiContract#Message",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://a.ml/vocabularies/apiContract#payload": [
+{
+"@id": "amf://id#5",
+"@type": [
+"http://a.ml/vocabularies/apiContract#Payload",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://a.ml/vocabularies/core#mediaType": [
+{
+"@value": "binary/octet-stream"
+}
+],
+"http://a.ml/vocabularies/shapes#schema": [
+{
+"@id": "amf://id#6",
+"@type": [
+"http://a.ml/vocabularies/shapes#AnyShape",
+"http://www.w3.org/ns/shacl#Shape",
+"http://a.ml/vocabularies/shapes#Shape",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "schema"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#6/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#auto-generated-name": [
+{
+"@id": "amf://id#6/source-map/auto-generated-name/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#6"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": ""
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#6/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#6"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(7,6)-(8,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#5/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#5/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#5"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(7,6)-(8,0)]"
+}
+]
+}
+]
+}
+]
+},
+{
+"@id": "amf://id#7",
+"@type": [
+"http://a.ml/vocabularies/apiContract#Payload",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://a.ml/vocabularies/core#mediaType": [
+{
+"@value": "multipart/form-data"
+}
+],
+"http://a.ml/vocabularies/shapes#schema": [
+{
+"@id": "amf://id#8",
+"@type": [
+"http://www.w3.org/ns/shacl#NodeShape",
+"http://a.ml/vocabularies/shapes#AnyShape",
+"http://www.w3.org/ns/shacl#Shape",
+"http://a.ml/vocabularies/shapes#Shape",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://www.w3.org/ns/shacl#closed": [
+{
+"@value": false
+}
+],
+"http://www.w3.org/ns/shacl#property": [
+{
+"@id": "amf://id#9",
+"@type": [
+"http://www.w3.org/ns/shacl#PropertyShape",
+"http://www.w3.org/ns/shacl#Shape",
+"http://a.ml/vocabularies/shapes#Shape",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://www.w3.org/ns/shacl#path": [
+{
+"@id": "http://a.ml/vocabularies/data#file"
+}
+],
+"http://a.ml/vocabularies/shapes#range": [
+{
+"@id": "amf://id#10",
+"@type": [
+"http://a.ml/vocabularies/shapes#FileShape",
+"http://a.ml/vocabularies/shapes#AnyShape",
+"http://www.w3.org/ns/shacl#Shape",
+"http://a.ml/vocabularies/shapes#Shape",
+"http://a.ml/vocabularies/document#DomainElement"
+],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "file"
+}
+],
+"http://a.ml/vocabularies/core#description": [
+{
+"@value": "The file to upload."
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#10/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#10/source-map/type-property-lexical-info/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#10"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(13,12)-(13,16)]"
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#10/source-map/lexical/element_1",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#10"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(10,15)-(13,22)]"
+}
+]
+},
+{
+"@id": "amf://id#10/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "http://a.ml/vocabularies/core#description"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(11,12)-(12,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"http://www.w3.org/ns/shacl#minCount": [
+{
+"@value": 1
+}
+],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "file"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#9/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#9/source-map/lexical/element_1",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#9"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(10,10)-(13,22)]"
+}
+]
+},
+{
+"@id": "amf://id#9/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "http://www.w3.org/ns/shacl#minCount"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(12,12)-(13,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "schema"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#8/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#auto-generated-name": [
+{
+"@id": "amf://id#8/source-map/auto-generated-name/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#8"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": ""
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#8/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#8"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(8,6)-(13,22)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#7/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#7/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#7"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(8,6)-(13,22)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#4/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#4/source-map/lexical/element_1",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#4"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(5,0)-(13,22)]"
+}
+]
+},
+{
+"@id": "amf://id#4/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "http://a.ml/vocabularies/apiContract#payload"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(6,4)-(13,22)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#3/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#synthesized-field": [
+{
+"@id": "amf://id#3/source-map/synthesized-field/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "http://a.ml/vocabularies/apiContract#expects"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "true"
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#3/source-map/lexical/element_1",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#3"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(4,2)-(13,22)]"
+}
+]
+},
+{
+"@id": "amf://id#3/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "http://a.ml/vocabularies/core#description"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(5,4)-(6,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#2/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#2/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#2"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(3,0)-(13,22)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#1/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#source-vendor": [
+{
+"@id": "amf://id#1/source-map/source-vendor/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#1"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "RAML 1.0"
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#lexical": [
+{
+"@id": "amf://id#1/source-map/lexical/element_1",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#1"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(2,0)-(13,22)]"
+}
+]
+},
+{
+"@id": "amf://id#1/source-map/lexical/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "http://a.ml/vocabularies/core#name"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(2,0)-(3,0)]"
+}
+]
+}
+]
+}
+]
+}
+],
+"http://a.ml/vocabularies/document#version": [
+{
+"@value": "2.1.0"
+}
+],
+"http://a.ml/vocabularies/document#root": [
+{
+"@value": true
+}
+]
+}
+]
diff --git a/demo/APIC-463/APIC-463.raml b/demo/APIC-463/APIC-463.raml
new file mode 100644
index 0000000..b6663ff
--- /dev/null
+++ b/demo/APIC-463/APIC-463.raml
@@ -0,0 +1,13 @@
+#%RAML 1.0
+title: missing-body
+/test:
+ post:
+ description: Upload a dataset[.txt,.csv] or config[.conf] file. Maximum file size is 2 GB.
+ body:
+ binary/octet-stream:
+ multipart/form-data:
+ properties:
+ file:
+ description: The file to upload.
+ required: true
+ type: file
\ No newline at end of file
diff --git a/demo/SE-11508-compact.json b/demo/SE-11508-compact.json
index 862c882..e9d76a6 100644
--- a/demo/SE-11508-compact.json
+++ b/demo/SE-11508-compact.json
@@ -138,7 +138,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#437/link--472642713",
+"@id": "#437/link--1007411401",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -445,7 +445,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#409/link--8027511",
+"@id": "#409/link--2140392300",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -2328,7 +2328,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#396/link--847855477",
+"@id": "#396/link--1206998445",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -4460,7 +4460,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#57/link--966145806",
+"@id": "#57/link--878430692",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -4767,7 +4767,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#37/link-301198464",
+"@id": "#37/link--1408613804",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -6650,7 +6650,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#79/link-832828185",
+"@id": "#79/link-1196481263",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -6962,7 +6962,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#124/link-1016537872",
+"@id": "#124/link--1342560795",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -7080,7 +7080,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#148/link-258651542",
+"@id": "#148/link-516560809",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -10502,7 +10502,7 @@
],
"raml-shapes:items": [
{
-"@id": "#14/link-1716522",
+"@id": "#14/link--1570414219",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -10522,6 +10522,11 @@
]
}
],
+"shacl:name": [
+{
+"@value": "default"
+}
+],
"apiContract:examples": [
{
"@id": "#582",
@@ -10994,21 +10999,6 @@
]
}
],
-"sourcemaps:local-element": [
-{
-"@id": "#582/source-map/local-element/element_0",
-"sourcemaps:element": [
-{
-"@value": "amf://id#582"
-}
-],
-"sourcemaps:value": [
-{
-"@value": ""
-}
-]
-}
-],
"sourcemaps:tracked-element": [
{
"@id": "#582/source-map/tracked-element/element_0",
@@ -11401,21 +11391,6 @@
]
}
],
-"sourcemaps:local-element": [
-{
-"@id": "#589/source-map/local-element/element_0",
-"sourcemaps:element": [
-{
-"@value": "amf://id#589"
-}
-],
-"sourcemaps:value": [
-{
-"@value": ""
-}
-]
-}
-],
"sourcemaps:tracked-element": [
{
"@id": "#589/source-map/tracked-element/element_0",
@@ -11966,21 +11941,6 @@
]
}
],
-"sourcemaps:local-element": [
-{
-"@id": "#594/source-map/local-element/element_0",
-"sourcemaps:element": [
-{
-"@value": "amf://id#594"
-}
-],
-"sourcemaps:value": [
-{
-"@value": ""
-}
-]
-}
-],
"sourcemaps:tracked-element": [
{
"@id": "#594/source-map/tracked-element/element_0",
@@ -12023,15 +11983,43 @@
],
"sourcemaps:lexical": [
{
+"@id": "#581/source-map/lexical/element_1",
+"sourcemaps:element": [
+{
+"@value": "amf://id#581"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(109,10)-(113,0)]"
+}
+]
+},
+{
"@id": "#581/source-map/lexical/element_0",
"sourcemaps:element": [
{
+"@value": "apiContract:examples"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(111,12)-(113,0)]"
+}
+]
+}
+],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#581/source-map/type-property-lexical-info/element_0",
+"sourcemaps:element": [
+{
"@value": "amf://id#581"
}
],
"sourcemaps:value": [
{
-"@value": "[(110,12)-(111,0)]"
+"@value": "[(110,12)-(110,16)]"
}
]
}
@@ -12138,7 +12126,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#328/link--1965364078",
+"@id": "#328/link--1703584413",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -14120,7 +14108,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#233/link-1472441014",
+"@id": "#233/link--2093489172",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -14238,7 +14226,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#167/link--114337474",
+"@id": "#167/link-67232232",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -17275,7 +17263,7 @@
],
"raml-shapes:items": [
{
-"@id": "#310/link--1445982605",
+"@id": "#310/link-547838077",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -17295,6 +17283,11 @@
]
}
],
+"shacl:name": [
+{
+"@value": "default"
+}
+],
"apiContract:examples": [
{
"@id": "#660",
@@ -17889,21 +17882,6 @@
]
}
],
-"sourcemaps:local-element": [
-{
-"@id": "#660/source-map/local-element/element_0",
-"sourcemaps:element": [
-{
-"@value": "amf://id#660"
-}
-],
-"sourcemaps:value": [
-{
-"@value": ""
-}
-]
-}
-],
"sourcemaps:tracked-element": [
{
"@id": "#660/source-map/tracked-element/element_0",
@@ -18515,21 +18493,6 @@
]
}
],
-"sourcemaps:local-element": [
-{
-"@id": "#669/source-map/local-element/element_0",
-"sourcemaps:element": [
-{
-"@value": "amf://id#669"
-}
-],
-"sourcemaps:value": [
-{
-"@value": ""
-}
-]
-}
-],
"sourcemaps:tracked-element": [
{
"@id": "#669/source-map/tracked-element/element_0",
@@ -19141,21 +19104,6 @@
]
}
],
-"sourcemaps:local-element": [
-{
-"@id": "#678/source-map/local-element/element_0",
-"sourcemaps:element": [
-{
-"@value": "amf://id#678"
-}
-],
-"sourcemaps:value": [
-{
-"@value": ""
-}
-]
-}
-],
"sourcemaps:tracked-element": [
{
"@id": "#678/source-map/tracked-element/element_0",
@@ -19328,21 +19276,6 @@
]
}
],
-"sourcemaps:local-element": [
-{
-"@id": "#687/source-map/local-element/element_0",
-"sourcemaps:element": [
-{
-"@value": "amf://id#687"
-}
-],
-"sourcemaps:value": [
-{
-"@value": ""
-}
-]
-}
-],
"sourcemaps:tracked-element": [
{
"@id": "#687/source-map/tracked-element/element_0",
@@ -19385,15 +19318,43 @@
],
"sourcemaps:lexical": [
{
+"@id": "#659/source-map/lexical/element_1",
+"sourcemaps:element": [
+{
+"@value": "amf://id#659"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(171,10)-(175,0)]"
+}
+]
+},
+{
"@id": "#659/source-map/lexical/element_0",
"sourcemaps:element": [
{
+"@value": "apiContract:examples"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(173,12)-(175,0)]"
+}
+]
+}
+],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#659/source-map/type-property-lexical-info/element_0",
+"sourcemaps:element": [
+{
"@value": "amf://id#659"
}
],
"sourcemaps:value": [
{
-"@value": "[(172,12)-(173,0)]"
+"@value": "[(172,12)-(172,16)]"
}
]
}
@@ -20084,7 +20045,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#188/link--246023887",
+"@id": "#188/link--695998086",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -31880,7 +31841,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#214/link-337373079",
+"@id": "#214/link-1039139204",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -32783,7 +32744,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#233/link-1472441014",
+"@id": "#233/link--2093489172",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -32901,7 +32862,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#167/link--114337474",
+"@id": "#167/link-67232232",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -56708,12 +56669,32 @@
]
}
],
+"shacl:name": [
+{
+"@value": "messages"
+}
+],
"sourcemaps:sources": [
{
"@id": "#336/source-map",
"@type": [
"sourcemaps:SourceMap"
],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#336/source-map/type-property-lexical-info/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#336"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(14,8)-(14,12)]"
+}
+]
+}
+],
"sourcemaps:lexical": [
{
"@id": "#336/source-map/lexical/element_0",
@@ -56724,7 +56705,7 @@
],
"sourcemaps:value": [
{
-"@value": "[(14,8)-(15,0)]"
+"@value": "[(13,6)-(17,9)]"
}
]
}
diff --git a/demo/SE-11508.json b/demo/SE-11508.json
index 83a4033..2d619ab 100644
--- a/demo/SE-11508.json
+++ b/demo/SE-11508.json
@@ -138,7 +138,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#437/link--472642713",
+"@id": "amf://id#437/link--1007411401",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -445,7 +445,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#409/link--8027511",
+"@id": "amf://id#409/link--2140392300",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -2328,7 +2328,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#396/link--847855477",
+"@id": "amf://id#396/link--1206998445",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -4460,7 +4460,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#57/link--966145806",
+"@id": "amf://id#57/link--878430692",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -4767,7 +4767,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#37/link-301198464",
+"@id": "amf://id#37/link--1408613804",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -6650,7 +6650,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#79/link-832828185",
+"@id": "amf://id#79/link-1196481263",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -6962,7 +6962,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#124/link-1016537872",
+"@id": "amf://id#124/link--1342560795",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -7080,7 +7080,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#148/link-258651542",
+"@id": "amf://id#148/link-516560809",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -10502,7 +10502,7 @@
],
"http://a.ml/vocabularies/shapes#items": [
{
-"@id": "amf://id#14/link-1716522",
+"@id": "amf://id#14/link--1570414219",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -10522,6 +10522,11 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "default"
+}
+],
"http://a.ml/vocabularies/apiContract#examples": [
{
"@id": "amf://id#582",
@@ -10994,21 +10999,6 @@
]
}
],
-"http://a.ml/vocabularies/document-source-maps#local-element": [
-{
-"@id": "amf://id#582/source-map/local-element/element_0",
-"http://a.ml/vocabularies/document-source-maps#element": [
-{
-"@value": "amf://id#582"
-}
-],
-"http://a.ml/vocabularies/document-source-maps#value": [
-{
-"@value": ""
-}
-]
-}
-],
"http://a.ml/vocabularies/document-source-maps#tracked-element": [
{
"@id": "amf://id#582/source-map/tracked-element/element_0",
@@ -11401,21 +11391,6 @@
]
}
],
-"http://a.ml/vocabularies/document-source-maps#local-element": [
-{
-"@id": "amf://id#589/source-map/local-element/element_0",
-"http://a.ml/vocabularies/document-source-maps#element": [
-{
-"@value": "amf://id#589"
-}
-],
-"http://a.ml/vocabularies/document-source-maps#value": [
-{
-"@value": ""
-}
-]
-}
-],
"http://a.ml/vocabularies/document-source-maps#tracked-element": [
{
"@id": "amf://id#589/source-map/tracked-element/element_0",
@@ -11966,21 +11941,6 @@
]
}
],
-"http://a.ml/vocabularies/document-source-maps#local-element": [
-{
-"@id": "amf://id#594/source-map/local-element/element_0",
-"http://a.ml/vocabularies/document-source-maps#element": [
-{
-"@value": "amf://id#594"
-}
-],
-"http://a.ml/vocabularies/document-source-maps#value": [
-{
-"@value": ""
-}
-]
-}
-],
"http://a.ml/vocabularies/document-source-maps#tracked-element": [
{
"@id": "amf://id#594/source-map/tracked-element/element_0",
@@ -12023,15 +11983,43 @@
],
"http://a.ml/vocabularies/document-source-maps#lexical": [
{
+"@id": "amf://id#581/source-map/lexical/element_1",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#581"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(109,10)-(113,0)]"
+}
+]
+},
+{
"@id": "amf://id#581/source-map/lexical/element_0",
"http://a.ml/vocabularies/document-source-maps#element": [
{
+"@value": "http://a.ml/vocabularies/apiContract#examples"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(111,12)-(113,0)]"
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#581/source-map/type-property-lexical-info/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
"@value": "amf://id#581"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(110,12)-(111,0)]"
+"@value": "[(110,12)-(110,16)]"
}
]
}
@@ -12138,7 +12126,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#328/link--1965364078",
+"@id": "amf://id#328/link--1703584413",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -14120,7 +14108,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#233/link-1472441014",
+"@id": "amf://id#233/link--2093489172",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -14238,7 +14226,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#167/link--114337474",
+"@id": "amf://id#167/link-67232232",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -17275,7 +17263,7 @@
],
"http://a.ml/vocabularies/shapes#items": [
{
-"@id": "amf://id#310/link--1445982605",
+"@id": "amf://id#310/link-547838077",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -17295,6 +17283,11 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "default"
+}
+],
"http://a.ml/vocabularies/apiContract#examples": [
{
"@id": "amf://id#660",
@@ -17889,21 +17882,6 @@
]
}
],
-"http://a.ml/vocabularies/document-source-maps#local-element": [
-{
-"@id": "amf://id#660/source-map/local-element/element_0",
-"http://a.ml/vocabularies/document-source-maps#element": [
-{
-"@value": "amf://id#660"
-}
-],
-"http://a.ml/vocabularies/document-source-maps#value": [
-{
-"@value": ""
-}
-]
-}
-],
"http://a.ml/vocabularies/document-source-maps#tracked-element": [
{
"@id": "amf://id#660/source-map/tracked-element/element_0",
@@ -18515,21 +18493,6 @@
]
}
],
-"http://a.ml/vocabularies/document-source-maps#local-element": [
-{
-"@id": "amf://id#669/source-map/local-element/element_0",
-"http://a.ml/vocabularies/document-source-maps#element": [
-{
-"@value": "amf://id#669"
-}
-],
-"http://a.ml/vocabularies/document-source-maps#value": [
-{
-"@value": ""
-}
-]
-}
-],
"http://a.ml/vocabularies/document-source-maps#tracked-element": [
{
"@id": "amf://id#669/source-map/tracked-element/element_0",
@@ -19141,21 +19104,6 @@
]
}
],
-"http://a.ml/vocabularies/document-source-maps#local-element": [
-{
-"@id": "amf://id#678/source-map/local-element/element_0",
-"http://a.ml/vocabularies/document-source-maps#element": [
-{
-"@value": "amf://id#678"
-}
-],
-"http://a.ml/vocabularies/document-source-maps#value": [
-{
-"@value": ""
-}
-]
-}
-],
"http://a.ml/vocabularies/document-source-maps#tracked-element": [
{
"@id": "amf://id#678/source-map/tracked-element/element_0",
@@ -19328,21 +19276,6 @@
]
}
],
-"http://a.ml/vocabularies/document-source-maps#local-element": [
-{
-"@id": "amf://id#687/source-map/local-element/element_0",
-"http://a.ml/vocabularies/document-source-maps#element": [
-{
-"@value": "amf://id#687"
-}
-],
-"http://a.ml/vocabularies/document-source-maps#value": [
-{
-"@value": ""
-}
-]
-}
-],
"http://a.ml/vocabularies/document-source-maps#tracked-element": [
{
"@id": "amf://id#687/source-map/tracked-element/element_0",
@@ -19385,15 +19318,43 @@
],
"http://a.ml/vocabularies/document-source-maps#lexical": [
{
+"@id": "amf://id#659/source-map/lexical/element_1",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#659"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(171,10)-(175,0)]"
+}
+]
+},
+{
"@id": "amf://id#659/source-map/lexical/element_0",
"http://a.ml/vocabularies/document-source-maps#element": [
{
+"@value": "http://a.ml/vocabularies/apiContract#examples"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(173,12)-(175,0)]"
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#659/source-map/type-property-lexical-info/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
"@value": "amf://id#659"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(172,12)-(173,0)]"
+"@value": "[(172,12)-(172,16)]"
}
]
}
@@ -20084,7 +20045,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#188/link--246023887",
+"@id": "amf://id#188/link--695998086",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -31880,7 +31841,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#214/link-337373079",
+"@id": "amf://id#214/link-1039139204",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -32783,7 +32744,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#233/link-1472441014",
+"@id": "amf://id#233/link--2093489172",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -32901,7 +32862,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#167/link--114337474",
+"@id": "amf://id#167/link-67232232",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -56708,12 +56669,32 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "messages"
+}
+],
"http://a.ml/vocabularies/document-source-maps#sources": [
{
"@id": "amf://id#336/source-map",
"@type": [
"http://a.ml/vocabularies/document-source-maps#SourceMap"
],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#336/source-map/type-property-lexical-info/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#336"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(14,8)-(14,12)]"
+}
+]
+}
+],
"http://a.ml/vocabularies/document-source-maps#lexical": [
{
"@id": "amf://id#336/source-map/lexical/element_0",
@@ -56724,7 +56705,7 @@
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(14,8)-(15,0)]"
+"@value": "[(13,6)-(17,9)]"
}
]
}
diff --git a/demo/SE-12291-compact.json b/demo/SE-12291-compact.json
index 7443c60..ee9e8ef 100644
--- a/demo/SE-12291-compact.json
+++ b/demo/SE-12291-compact.json
@@ -4195,7 +4195,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#66/link--1371783372",
+"@id": "#66/link--1045201492",
"@type": [
"raml-shapes:AnyShape",
"shacl:Shape",
@@ -4372,7 +4372,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#1/link-614416671",
+"@id": "#1/link-67232232",
"@type": [
"raml-shapes:AnyShape",
"shacl:Shape",
@@ -4661,6 +4661,11 @@
]
}
],
+"apiContract:operationId": [
+{
+"@value": "Portfolio_GetPortfolios"
+}
+],
"sourcemaps:sources": [
{
"@id": "#74/source-map",
@@ -4684,41 +4689,41 @@
],
"sourcemaps:lexical": [
{
-"@id": "#74/source-map/lexical/element_5",
+"@id": "#74/source-map/lexical/element_6",
"sourcemaps:element": [
{
-"@value": "apiContract:returns"
+"@value": "apiContract:tag"
}
],
"sourcemaps:value": [
{
-"@value": "[(141,8)-(157,9)]"
+"@value": "[(14,8)-(16,9)]"
}
]
},
{
-"@id": "#74/source-map/lexical/element_3",
+"@id": "#74/source-map/lexical/element_4",
"sourcemaps:element": [
{
-"@value": "amf://id#74"
+"@value": "core:name"
}
],
"sourcemaps:value": [
{
-"@value": "[(13,6)-(163,7)]"
+"@value": "[(18,8)-(18,48)]"
}
]
},
{
-"@id": "#74/source-map/lexical/element_1",
+"@id": "#74/source-map/lexical/element_2",
"sourcemaps:element": [
{
-"@value": "apiContract:accepts"
+"@value": "apiContract:guiSummary"
}
],
"sourcemaps:value": [
{
-"@value": "[(19,8)-(19,22)]"
+"@value": "[(17,8)-(17,43)]"
}
]
},
@@ -4726,38 +4731,51 @@
"@id": "#74/source-map/lexical/element_0",
"sourcemaps:element": [
{
-"@value": "apiContract:tag"
+"@value": "apiContract:operationId"
}
],
"sourcemaps:value": [
{
-"@value": "[(14,8)-(16,9)]"
+"@value": "[(18,8)-(18,48)]"
}
]
},
{
-"@id": "#74/source-map/lexical/element_2",
+"@id": "#74/source-map/lexical/element_1",
"sourcemaps:element": [
{
-"@value": "core:name"
+"@value": "apiContract:returns"
}
],
"sourcemaps:value": [
{
-"@value": "[(18,8)-(18,48)]"
+"@value": "[(141,8)-(157,9)]"
}
]
},
{
-"@id": "#74/source-map/lexical/element_4",
+"@id": "#74/source-map/lexical/element_3",
"sourcemaps:element": [
{
-"@value": "apiContract:guiSummary"
+"@value": "amf://id#74"
}
],
"sourcemaps:value": [
{
-"@value": "[(17,8)-(17,43)]"
+"@value": "[(13,6)-(163,7)]"
+}
+]
+},
+{
+"@id": "#74/source-map/lexical/element_5",
+"sourcemaps:element": [
+{
+"@value": "apiContract:accepts"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(19,8)-(19,22)]"
}
]
}
diff --git a/demo/SE-12291.json b/demo/SE-12291.json
index 60616d9..d712c1e 100644
--- a/demo/SE-12291.json
+++ b/demo/SE-12291.json
@@ -4195,7 +4195,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#66/link--1371783372",
+"@id": "amf://id#66/link--1045201492",
"@type": [
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
@@ -4372,7 +4372,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#1/link-614416671",
+"@id": "amf://id#1/link-67232232",
"@type": [
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
@@ -4661,6 +4661,11 @@
]
}
],
+"http://a.ml/vocabularies/apiContract#operationId": [
+{
+"@value": "Portfolio_GetPortfolios"
+}
+],
"http://a.ml/vocabularies/document-source-maps#sources": [
{
"@id": "amf://id#74/source-map",
@@ -4684,41 +4689,41 @@
],
"http://a.ml/vocabularies/document-source-maps#lexical": [
{
-"@id": "amf://id#74/source-map/lexical/element_5",
+"@id": "amf://id#74/source-map/lexical/element_6",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "http://a.ml/vocabularies/apiContract#returns"
+"@value": "http://a.ml/vocabularies/apiContract#tag"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(141,8)-(157,9)]"
+"@value": "[(14,8)-(16,9)]"
}
]
},
{
-"@id": "amf://id#74/source-map/lexical/element_3",
+"@id": "amf://id#74/source-map/lexical/element_4",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "amf://id#74"
+"@value": "http://a.ml/vocabularies/core#name"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(13,6)-(163,7)]"
+"@value": "[(18,8)-(18,48)]"
}
]
},
{
-"@id": "amf://id#74/source-map/lexical/element_1",
+"@id": "amf://id#74/source-map/lexical/element_2",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "http://a.ml/vocabularies/apiContract#accepts"
+"@value": "http://a.ml/vocabularies/apiContract#guiSummary"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(19,8)-(19,22)]"
+"@value": "[(17,8)-(17,43)]"
}
]
},
@@ -4726,38 +4731,51 @@
"@id": "amf://id#74/source-map/lexical/element_0",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "http://a.ml/vocabularies/apiContract#tag"
+"@value": "http://a.ml/vocabularies/apiContract#operationId"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(14,8)-(16,9)]"
+"@value": "[(18,8)-(18,48)]"
}
]
},
{
-"@id": "amf://id#74/source-map/lexical/element_2",
+"@id": "amf://id#74/source-map/lexical/element_1",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "http://a.ml/vocabularies/core#name"
+"@value": "http://a.ml/vocabularies/apiContract#returns"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(18,8)-(18,48)]"
+"@value": "[(141,8)-(157,9)]"
}
]
},
{
-"@id": "amf://id#74/source-map/lexical/element_4",
+"@id": "amf://id#74/source-map/lexical/element_3",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "http://a.ml/vocabularies/apiContract#guiSummary"
+"@value": "amf://id#74"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(17,8)-(17,43)]"
+"@value": "[(13,6)-(163,7)]"
+}
+]
+},
+{
+"@id": "amf://id#74/source-map/lexical/element_5",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "http://a.ml/vocabularies/apiContract#accepts"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(19,8)-(19,22)]"
}
]
}
diff --git a/demo/apis.json b/demo/apis.json
index 1551f60..e2efd56 100644
--- a/demo/apis.json
+++ b/demo/apis.json
@@ -6,5 +6,6 @@
"raml-types/raml-types.raml": "RAML 1.0",
"examples-api/examples-api.raml": "RAML 1.0",
"SE-11508/SE-11508.raml": "RAML 1.0",
+ "APIC-463/APIC-463.raml": "RAML 1.0",
"SE-12291/SE-12291.json": "OAS 2.0"
}
diff --git a/demo/array-example-compact.json b/demo/array-example-compact.json
index 559322e..25e396a 100644
--- a/demo/array-example-compact.json
+++ b/demo/array-example-compact.json
@@ -133,7 +133,7 @@
],
"raml-shapes:items": [
{
-"@id": "#48/link-936576810",
+"@id": "#48/link-606175198",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -153,6 +153,11 @@
]
}
],
+"shacl:name": [
+{
+"@value": "schema"
+}
+],
"sourcemaps:sources": [
{
"@id": "#185/source-map",
@@ -184,7 +189,22 @@
],
"sourcemaps:value": [
{
-"@value": "[(200,8)-(201,0)]"
+"@value": "[(199,6)-(201,0)]"
+}
+]
+}
+],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#185/source-map/type-property-lexical-info/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#185"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(200,8)-(200,12)]"
}
]
}
diff --git a/demo/array-example.json b/demo/array-example.json
index 4d01588..039c8f5 100644
--- a/demo/array-example.json
+++ b/demo/array-example.json
@@ -133,7 +133,7 @@
],
"http://a.ml/vocabularies/shapes#items": [
{
-"@id": "amf://id#48/link-936576810",
+"@id": "amf://id#48/link-606175198",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -153,6 +153,11 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "schema"
+}
+],
"http://a.ml/vocabularies/document-source-maps#sources": [
{
"@id": "amf://id#185/source-map",
@@ -184,7 +189,22 @@
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(200,8)-(201,0)]"
+"@value": "[(199,6)-(201,0)]"
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#185/source-map/type-property-lexical-info/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#185"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(200,8)-(200,12)]"
}
]
}
diff --git a/demo/caro-api-compact.json b/demo/caro-api-compact.json
index 2e4bdf9..1e1645f 100644
--- a/demo/caro-api-compact.json
+++ b/demo/caro-api-compact.json
@@ -123,7 +123,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#15/link-32009719",
+"@id": "#15/link-759553291",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -3895,12 +3895,32 @@
]
}
],
+"shacl:name": [
+{
+"@value": "other"
+}
+],
"sourcemaps:sources": [
{
"@id": "#24/source-map",
"@type": [
"sourcemaps:SourceMap"
],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#24/source-map/type-property-lexical-info/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#24"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(47,6)-(47,10)]"
+}
+]
+}
+],
"sourcemaps:lexical": [
{
"@id": "#24/source-map/lexical/element_0",
@@ -3911,7 +3931,7 @@
],
"sourcemaps:value": [
{
-"@value": "[(47,6)-(49,0)]"
+"@value": "[(45,4)-(49,0)]"
}
]
}
diff --git a/demo/caro-api.json b/demo/caro-api.json
index 5a9b630..6be6a1f 100644
--- a/demo/caro-api.json
+++ b/demo/caro-api.json
@@ -123,7 +123,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#15/link-32009719",
+"@id": "amf://id#15/link-759553291",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -3895,12 +3895,32 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "other"
+}
+],
"http://a.ml/vocabularies/document-source-maps#sources": [
{
"@id": "amf://id#24/source-map",
"@type": [
"http://a.ml/vocabularies/document-source-maps#SourceMap"
],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#24/source-map/type-property-lexical-info/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#24"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(47,6)-(47,10)]"
+}
+]
+}
+],
"http://a.ml/vocabularies/document-source-maps#lexical": [
{
"@id": "amf://id#24/source-map/lexical/element_0",
@@ -3911,7 +3931,7 @@
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(47,6)-(49,0)]"
+"@value": "[(45,4)-(49,0)]"
}
]
}
diff --git a/demo/data-types-union-compact.json b/demo/data-types-union-compact.json
index 18fd2ba..7b25afc 100644
--- a/demo/data-types-union-compact.json
+++ b/demo/data-types-union-compact.json
@@ -145,7 +145,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#23/link--628625326",
+"@id": "#23/link-2047248393",
"@type": [
"raml-shapes:UnionShape",
"raml-shapes:AnyShape",
@@ -434,7 +434,7 @@
],
"raml-shapes:anyOf": [
{
-"@id": "#20/link-218743239",
+"@id": "#20/link--1795053683",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -454,7 +454,7 @@
]
},
{
-"@id": "#22/link--58632746",
+"@id": "#22/link-1258113742",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
diff --git a/demo/data-types-union.json b/demo/data-types-union.json
index 0e972a9..dc58e5d 100644
--- a/demo/data-types-union.json
+++ b/demo/data-types-union.json
@@ -145,7 +145,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#23/link--628625326",
+"@id": "amf://id#23/link-2047248393",
"@type": [
"http://a.ml/vocabularies/shapes#UnionShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -434,7 +434,7 @@
],
"http://a.ml/vocabularies/shapes#anyOf": [
{
-"@id": "amf://id#20/link-218743239",
+"@id": "amf://id#20/link--1795053683",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -454,7 +454,7 @@
]
},
{
-"@id": "amf://id#22/link--58632746",
+"@id": "amf://id#22/link-1258113742",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
diff --git a/demo/demo-api-compact.json b/demo/demo-api-compact.json
index 65a75f0..1571ee6 100644
--- a/demo/demo-api-compact.json
+++ b/demo/demo-api-compact.json
@@ -1280,7 +1280,7 @@
],
"raml-shapes:range": [
{
-"@id": "#3/link-704756176",
+"@id": "#3/link-100313435",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -7463,7 +7463,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#163/link-284076841",
+"@id": "#163/link-1355179215",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -7578,7 +7578,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#163/link-284076841",
+"@id": "#163/link-1355179215",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -8278,7 +8278,7 @@
],
"raml-shapes:range": [
{
-"@id": "#64/link--39833273",
+"@id": "#64/link--1795053683",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -8347,7 +8347,7 @@
],
"raml-shapes:range": [
{
-"@id": "#63/link--416890191",
+"@id": "#63/link-541929622",
"@type": [
"raml-shapes:UnionShape",
"raml-shapes:AnyShape",
@@ -8560,7 +8560,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#82/link--2052525118",
+"@id": "#82/link-79556",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -9666,7 +9666,7 @@
],
"raml-shapes:items": [
{
-"@id": "#129/link-721167184",
+"@id": "#129/link-100526016",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -12608,7 +12608,7 @@
],
"raml-shapes:anyOf": [
{
-"@id": "#161/link-964917842",
+"@id": "#161/link--890878794",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -12628,7 +12628,7 @@
]
},
{
-"@id": "#163/link-284076841",
+"@id": "#163/link-1355179215",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -17101,7 +17101,7 @@
],
"raml-shapes:range": [
{
-"@id": "#3/link-704756176",
+"@id": "#3/link-100313435",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
diff --git a/demo/demo-api.json b/demo/demo-api.json
index 11f7e0b..c8941c7 100644
--- a/demo/demo-api.json
+++ b/demo/demo-api.json
@@ -1280,7 +1280,7 @@
],
"http://a.ml/vocabularies/shapes#range": [
{
-"@id": "amf://id#3/link-704756176",
+"@id": "amf://id#3/link-100313435",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -7463,7 +7463,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#163/link-284076841",
+"@id": "amf://id#163/link-1355179215",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -7578,7 +7578,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#163/link-284076841",
+"@id": "amf://id#163/link-1355179215",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -8278,7 +8278,7 @@
],
"http://a.ml/vocabularies/shapes#range": [
{
-"@id": "amf://id#64/link--39833273",
+"@id": "amf://id#64/link--1795053683",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -8347,7 +8347,7 @@
],
"http://a.ml/vocabularies/shapes#range": [
{
-"@id": "amf://id#63/link--416890191",
+"@id": "amf://id#63/link-541929622",
"@type": [
"http://a.ml/vocabularies/shapes#UnionShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -8560,7 +8560,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#82/link--2052525118",
+"@id": "amf://id#82/link-79556",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -9666,7 +9666,7 @@
],
"http://a.ml/vocabularies/shapes#items": [
{
-"@id": "amf://id#129/link-721167184",
+"@id": "amf://id#129/link-100526016",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -12608,7 +12608,7 @@
],
"http://a.ml/vocabularies/shapes#anyOf": [
{
-"@id": "amf://id#161/link-964917842",
+"@id": "amf://id#161/link--890878794",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -12628,7 +12628,7 @@
]
},
{
-"@id": "amf://id#163/link-284076841",
+"@id": "amf://id#163/link-1355179215",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -17101,7 +17101,7 @@
],
"http://a.ml/vocabularies/shapes#range": [
{
-"@id": "amf://id#3/link-704756176",
+"@id": "amf://id#3/link-100313435",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
diff --git a/demo/examples-api-compact.json b/demo/examples-api-compact.json
index 0f49b3a..4bf02ae 100644
--- a/demo/examples-api-compact.json
+++ b/demo/examples-api-compact.json
@@ -123,7 +123,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#296/link--708070084",
+"@id": "#296/link--1907849355",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -180,7 +180,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#296/link--708070084",
+"@id": "#296/link--1907849355",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -372,7 +372,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#296/link--708070084",
+"@id": "#296/link--1907849355",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -746,7 +746,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#163/link-1379497760",
+"@id": "#163/link-3575610",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -938,7 +938,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#318/link--713805675",
+"@id": "#318/link--1126463037",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -995,7 +995,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#318/link--713805675",
+"@id": "#318/link--1126463037",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -1187,7 +1187,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#188/link-1572492935",
+"@id": "#188/link-1571618142",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -1244,7 +1244,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#188/link-1572492935",
+"@id": "#188/link-1571618142",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -1446,7 +1446,7 @@
],
"raml-shapes:items": [
{
-"@id": "#318/link--713805675",
+"@id": "#318/link--1126463037",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -1466,6 +1466,11 @@
]
}
],
+"shacl:name": [
+{
+"@value": "schema"
+}
+],
"sourcemaps:sources": [
{
"@id": "#364/source-map",
@@ -1497,7 +1502,22 @@
],
"sourcemaps:value": [
{
-"@value": "[(177,8)-(178,0)]"
+"@value": "[(176,6)-(178,0)]"
+}
+]
+}
+],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#364/source-map/type-property-lexical-info/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#364"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(177,8)-(177,12)]"
}
]
}
@@ -1688,7 +1708,7 @@
],
"raml-shapes:items": [
{
-"@id": "#188/link-1572492935",
+"@id": "#188/link-1571618142",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -1708,6 +1728,11 @@
]
}
],
+"shacl:name": [
+{
+"@value": "schema"
+}
+],
"sourcemaps:sources": [
{
"@id": "#369/source-map",
@@ -1739,7 +1764,22 @@
],
"sourcemaps:value": [
{
-"@value": "[(182,8)-(183,0)]"
+"@value": "[(181,6)-(183,0)]"
+}
+]
+}
+],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#369/source-map/type-property-lexical-info/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#369"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(182,8)-(182,12)]"
}
]
}
@@ -1795,7 +1835,7 @@
],
"raml-shapes:items": [
{
-"@id": "#188/link-1572492935",
+"@id": "#188/link-1571618142",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -1815,6 +1855,11 @@
]
}
],
+"shacl:name": [
+{
+"@value": "schema"
+}
+],
"sourcemaps:sources": [
{
"@id": "#371/source-map",
@@ -1846,7 +1891,22 @@
],
"sourcemaps:value": [
{
-"@value": "[(184,8)-(185,0)]"
+"@value": "[(183,6)-(185,0)]"
+}
+]
+}
+],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#371/source-map/type-property-lexical-info/element_0",
+"sourcemaps:element": [
+{
+"@value": "amf://id#371"
+}
+],
+"sourcemaps:value": [
+{
+"@value": "[(184,8)-(184,12)]"
}
]
}
@@ -2834,7 +2894,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#310/link--1287671302",
+"@id": "#310/link-2282800",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -3172,6 +3232,11 @@
]
}
],
+"shacl:name": [
+{
+"@value": "items"
+}
+],
"apiContract:examples": [
{
"@id": "#402",
@@ -3383,43 +3448,56 @@
}
]
}
+]
+}
+]
+}
],
-"sourcemaps:local-element": [
+"sourcemaps:sources": [
{
-"@id": "#402/source-map/local-element/element_0",
+"@id": "#401/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:type-property-lexical-info": [
+{
+"@id": "#401/source-map/type-property-lexical-info/element_0",
"sourcemaps:element": [
{
-"@value": "amf://id#402"
+"@value": "amf://id#401"
}
],
"sourcemaps:value": [
{
-"@value": ""
-}
-]
-}
-]
+"@value": "[(213,12)-(213,16)]"
}
]
}
],
-"sourcemaps:sources": [
+"sourcemaps:lexical": [
{
-"@id": "#401/source-map",
-"@type": [
-"sourcemaps:SourceMap"
+"@id": "#401/source-map/lexical/element_1",
+"sourcemaps:element": [
+{
+"@value": "amf://id#401"
+}
],
-"sourcemaps:lexical": [
+"sourcemaps:value": [
+{
+"@value": "[(212,10)-(215,0)]"
+}
+]
+},
{
"@id": "#401/source-map/lexical/element_0",
"sourcemaps:element": [
{
-"@value": "amf://id#401"
+"@value": "apiContract:examples"
}
],
"sourcemaps:value": [
{
-"@value": "[(213,12)-(214,0)]"
+"@value": "[(214,12)-(215,0)]"
}
]
}
@@ -3706,6 +3784,11 @@
]
}
],
+"shacl:name": [
+{
+"@value": "items"
+}
+],
"apiContract:examples": [
{
"@id": "#412",
@@ -3917,43 +4000,56 @@
}
]
}
+]
+}
+]
+}
],
-"sourcemaps:local-element": [
+"sourcemaps:sources": [
+{
+"@id": "#411/source-map",
+"@type": [
+"sourcemaps:SourceMap"
+],
+"sourcemaps:type-property-lexical-info": [
{
-"@id": "#412/source-map/local-element/element_0",
+"@id": "#411/source-map/type-property-lexical-info/element_0",
"sourcemaps:element": [
{
-"@value": "amf://id#412"
+"@value": "amf://id#411"
}
],
"sourcemaps:value": [
{
-"@value": ""
-}
-]
-}
-]
+"@value": "[(220,12)-(220,16)]"
}
]
}
],
-"sourcemaps:sources": [
+"sourcemaps:lexical": [
{
-"@id": "#411/source-map",
-"@type": [
-"sourcemaps:SourceMap"
+"@id": "#411/source-map/lexical/element_1",
+"sourcemaps:element": [
+{
+"@value": "amf://id#411"
+}
],
-"sourcemaps:lexical": [
+"sourcemaps:value": [
+{
+"@value": "[(219,10)-(222,0)]"
+}
+]
+},
{
"@id": "#411/source-map/lexical/element_0",
"sourcemaps:element": [
{
-"@value": "amf://id#411"
+"@value": "apiContract:examples"
}
],
"sourcemaps:value": [
{
-"@value": "[(220,12)-(221,0)]"
+"@value": "[(221,12)-(222,0)]"
}
]
}
@@ -4239,7 +4335,7 @@
],
"raml-shapes:anyOf": [
{
-"@id": "#296/link--708070084",
+"@id": "#296/link--1907849355",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -4259,7 +4355,7 @@
]
},
{
-"@id": "#188/link-1572492935",
+"@id": "#188/link-1571618142",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -4366,7 +4462,7 @@
],
"raml-shapes:anyOf": [
{
-"@id": "#296/link--708070084",
+"@id": "#296/link--1907849355",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -4386,7 +4482,7 @@
]
},
{
-"@id": "#188/link-1572492935",
+"@id": "#188/link-1571618142",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -6107,7 +6203,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#57/link-716070308",
+"@id": "#57/link-3575610",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -6164,7 +6260,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#57/link-716070308",
+"@id": "#57/link-3575610",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -6356,7 +6452,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#34/link-656041443",
+"@id": "#34/link-3575610",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -6548,7 +6644,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#134/link-1294533828",
+"@id": "#134/link-3575610",
"@type": [
"raml-shapes:ArrayShape",
"raml-shapes:AnyShape",
@@ -6605,7 +6701,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#134/link-1294533828",
+"@id": "#134/link-3575610",
"@type": [
"raml-shapes:ArrayShape",
"raml-shapes:AnyShape",
@@ -6797,7 +6893,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#112/link-1235428484",
+"@id": "#112/link-3575610",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
diff --git a/demo/examples-api.json b/demo/examples-api.json
index 4ec92cf..d0fc5a9 100644
--- a/demo/examples-api.json
+++ b/demo/examples-api.json
@@ -123,7 +123,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#296/link--708070084",
+"@id": "amf://id#296/link--1907849355",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -180,7 +180,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#296/link--708070084",
+"@id": "amf://id#296/link--1907849355",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -372,7 +372,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#296/link--708070084",
+"@id": "amf://id#296/link--1907849355",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -746,7 +746,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#163/link-1379497760",
+"@id": "amf://id#163/link-3575610",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -938,7 +938,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#318/link--713805675",
+"@id": "amf://id#318/link--1126463037",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -995,7 +995,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#318/link--713805675",
+"@id": "amf://id#318/link--1126463037",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -1187,7 +1187,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#188/link-1572492935",
+"@id": "amf://id#188/link-1571618142",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -1244,7 +1244,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#188/link-1572492935",
+"@id": "amf://id#188/link-1571618142",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -1446,7 +1446,7 @@
],
"http://a.ml/vocabularies/shapes#items": [
{
-"@id": "amf://id#318/link--713805675",
+"@id": "amf://id#318/link--1126463037",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -1466,6 +1466,11 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "schema"
+}
+],
"http://a.ml/vocabularies/document-source-maps#sources": [
{
"@id": "amf://id#364/source-map",
@@ -1497,7 +1502,22 @@
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(177,8)-(178,0)]"
+"@value": "[(176,6)-(178,0)]"
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#364/source-map/type-property-lexical-info/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#364"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(177,8)-(177,12)]"
}
]
}
@@ -1688,7 +1708,7 @@
],
"http://a.ml/vocabularies/shapes#items": [
{
-"@id": "amf://id#188/link-1572492935",
+"@id": "amf://id#188/link-1571618142",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -1708,6 +1728,11 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "schema"
+}
+],
"http://a.ml/vocabularies/document-source-maps#sources": [
{
"@id": "amf://id#369/source-map",
@@ -1739,7 +1764,22 @@
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(182,8)-(183,0)]"
+"@value": "[(181,6)-(183,0)]"
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#369/source-map/type-property-lexical-info/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#369"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(182,8)-(182,12)]"
}
]
}
@@ -1795,7 +1835,7 @@
],
"http://a.ml/vocabularies/shapes#items": [
{
-"@id": "amf://id#188/link-1572492935",
+"@id": "amf://id#188/link-1571618142",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -1815,6 +1855,11 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "schema"
+}
+],
"http://a.ml/vocabularies/document-source-maps#sources": [
{
"@id": "amf://id#371/source-map",
@@ -1846,7 +1891,22 @@
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(184,8)-(185,0)]"
+"@value": "[(183,6)-(185,0)]"
+}
+]
+}
+],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#371/source-map/type-property-lexical-info/element_0",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#371"
+}
+],
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(184,8)-(184,12)]"
}
]
}
@@ -2834,7 +2894,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#310/link--1287671302",
+"@id": "amf://id#310/link-2282800",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -3172,6 +3232,11 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "items"
+}
+],
"http://a.ml/vocabularies/apiContract#examples": [
{
"@id": "amf://id#402",
@@ -3383,43 +3448,56 @@
}
]
}
+]
+}
+]
+}
],
-"http://a.ml/vocabularies/document-source-maps#local-element": [
+"http://a.ml/vocabularies/document-source-maps#sources": [
{
-"@id": "amf://id#402/source-map/local-element/element_0",
+"@id": "amf://id#401/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
+{
+"@id": "amf://id#401/source-map/type-property-lexical-info/element_0",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "amf://id#402"
+"@value": "amf://id#401"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": ""
-}
-]
-}
-]
+"@value": "[(213,12)-(213,16)]"
}
]
}
],
-"http://a.ml/vocabularies/document-source-maps#sources": [
+"http://a.ml/vocabularies/document-source-maps#lexical": [
{
-"@id": "amf://id#401/source-map",
-"@type": [
-"http://a.ml/vocabularies/document-source-maps#SourceMap"
+"@id": "amf://id#401/source-map/lexical/element_1",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#401"
+}
],
-"http://a.ml/vocabularies/document-source-maps#lexical": [
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(212,10)-(215,0)]"
+}
+]
+},
{
"@id": "amf://id#401/source-map/lexical/element_0",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "amf://id#401"
+"@value": "http://a.ml/vocabularies/apiContract#examples"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(213,12)-(214,0)]"
+"@value": "[(214,12)-(215,0)]"
}
]
}
@@ -3706,6 +3784,11 @@
]
}
],
+"http://www.w3.org/ns/shacl#name": [
+{
+"@value": "items"
+}
+],
"http://a.ml/vocabularies/apiContract#examples": [
{
"@id": "amf://id#412",
@@ -3917,43 +4000,56 @@
}
]
}
+]
+}
+]
+}
],
-"http://a.ml/vocabularies/document-source-maps#local-element": [
+"http://a.ml/vocabularies/document-source-maps#sources": [
+{
+"@id": "amf://id#411/source-map",
+"@type": [
+"http://a.ml/vocabularies/document-source-maps#SourceMap"
+],
+"http://a.ml/vocabularies/document-source-maps#type-property-lexical-info": [
{
-"@id": "amf://id#412/source-map/local-element/element_0",
+"@id": "amf://id#411/source-map/type-property-lexical-info/element_0",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "amf://id#412"
+"@value": "amf://id#411"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": ""
-}
-]
-}
-]
+"@value": "[(220,12)-(220,16)]"
}
]
}
],
-"http://a.ml/vocabularies/document-source-maps#sources": [
+"http://a.ml/vocabularies/document-source-maps#lexical": [
{
-"@id": "amf://id#411/source-map",
-"@type": [
-"http://a.ml/vocabularies/document-source-maps#SourceMap"
+"@id": "amf://id#411/source-map/lexical/element_1",
+"http://a.ml/vocabularies/document-source-maps#element": [
+{
+"@value": "amf://id#411"
+}
],
-"http://a.ml/vocabularies/document-source-maps#lexical": [
+"http://a.ml/vocabularies/document-source-maps#value": [
+{
+"@value": "[(219,10)-(222,0)]"
+}
+]
+},
{
"@id": "amf://id#411/source-map/lexical/element_0",
"http://a.ml/vocabularies/document-source-maps#element": [
{
-"@value": "amf://id#411"
+"@value": "http://a.ml/vocabularies/apiContract#examples"
}
],
"http://a.ml/vocabularies/document-source-maps#value": [
{
-"@value": "[(220,12)-(221,0)]"
+"@value": "[(221,12)-(222,0)]"
}
]
}
@@ -4239,7 +4335,7 @@
],
"http://a.ml/vocabularies/shapes#anyOf": [
{
-"@id": "amf://id#296/link--708070084",
+"@id": "amf://id#296/link--1907849355",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -4259,7 +4355,7 @@
]
},
{
-"@id": "amf://id#188/link-1572492935",
+"@id": "amf://id#188/link-1571618142",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -4366,7 +4462,7 @@
],
"http://a.ml/vocabularies/shapes#anyOf": [
{
-"@id": "amf://id#296/link--708070084",
+"@id": "amf://id#296/link--1907849355",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -4386,7 +4482,7 @@
]
},
{
-"@id": "amf://id#188/link-1572492935",
+"@id": "amf://id#188/link-1571618142",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -6107,7 +6203,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#57/link-716070308",
+"@id": "amf://id#57/link-3575610",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -6164,7 +6260,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#57/link-716070308",
+"@id": "amf://id#57/link-3575610",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -6356,7 +6452,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#34/link-656041443",
+"@id": "amf://id#34/link-3575610",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -6548,7 +6644,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#134/link-1294533828",
+"@id": "amf://id#134/link-3575610",
"@type": [
"http://a.ml/vocabularies/shapes#ArrayShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -6605,7 +6701,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#134/link-1294533828",
+"@id": "amf://id#134/link-3575610",
"@type": [
"http://a.ml/vocabularies/shapes#ArrayShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -6797,7 +6893,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#112/link-1235428484",
+"@id": "amf://id#112/link-3575610",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
diff --git a/demo/index.js b/demo/index.js
index c6dd470..bf29f79 100644
--- a/demo/index.js
+++ b/demo/index.js
@@ -109,7 +109,8 @@ class ApiDemo extends ApiDemoPageBase {
['data-types-union', 'APIC-157: union data types'],
['SE-11508', 'SE-11508'],
['SE-12291', 'OAS "and" type'],
- ['demo-api-v4', 'Demo API - AMF v4']
+ ['demo-api-v4', 'Demo API - AMF v4'],
+ ['APIC-463', 'APIC-463']
].map(([file, label]) => html`
${label} - compact model
${label}
diff --git a/demo/raml-types-compact.json b/demo/raml-types-compact.json
index df17358..c61a85f 100644
--- a/demo/raml-types-compact.json
+++ b/demo/raml-types-compact.json
@@ -123,7 +123,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#28/link-1395988761",
+"@id": "#28/link--1675388953",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -180,7 +180,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#28/link-1395988761",
+"@id": "#28/link--1675388953",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -335,7 +335,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#28/link-1395988761",
+"@id": "#28/link--1675388953",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -392,7 +392,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#28/link-1395988761",
+"@id": "#28/link--1675388953",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
@@ -4087,7 +4087,7 @@
],
"raml-shapes:schema": [
{
-"@id": "#28/link-1395988761",
+"@id": "#28/link--1675388953",
"@type": [
"shacl:NodeShape",
"raml-shapes:AnyShape",
diff --git a/demo/raml-types.json b/demo/raml-types.json
index b6100a7..14313e6 100644
--- a/demo/raml-types.json
+++ b/demo/raml-types.json
@@ -123,7 +123,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#28/link-1395988761",
+"@id": "amf://id#28/link--1675388953",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -180,7 +180,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#28/link-1395988761",
+"@id": "amf://id#28/link--1675388953",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -335,7 +335,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#28/link-1395988761",
+"@id": "amf://id#28/link--1675388953",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -392,7 +392,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#28/link-1395988761",
+"@id": "amf://id#28/link--1675388953",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
@@ -4087,7 +4087,7 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
-"@id": "amf://id#28/link-1395988761",
+"@id": "amf://id#28/link--1675388953",
"@type": [
"http://www.w3.org/ns/shacl#NodeShape",
"http://a.ml/vocabularies/shapes#AnyShape",
diff --git a/package-lock.json b/package-lock.json
index ae5a5db..496f028 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@api-components/api-body-document",
- "version": "4.1.1",
+ "version": "4.1.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index aaeeec8..838c5c5 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "@api-components/api-body-document",
"description": "A component to render HTTP method body documentation based on AMF model",
- "version": "4.1.1",
+ "version": "4.1.2",
"license": "Apache-2.0",
"main": "api-body-document.js",
"keywords": [
diff --git a/test/api-body-document.test.js b/test/api-body-document.test.js
index 0a9e7bd..7e88ef2 100644
--- a/test/api-body-document.test.js
+++ b/test/api-body-document.test.js
@@ -290,10 +290,14 @@ describe('', function() {
assert.ok(label);
});
- it('Does not render media types', async () => {
+ it('renderMediaSelector is false', () => {
+ assert.isFalse(element._renderMediaSelector);
+ });
+
+ it('Renders media types', async () => {
await nextFrame();
const node = element.shadowRoot.querySelector('.media-type-selector');
- assert.notOk(node);
+ assert.ok(node);
});
});
});
@@ -482,4 +486,39 @@ describe('', function() {
});
});
});
+
+ describe('Any type rendering when multiple media types', () => {
+ [
+ ['APIC-463', false],
+ ['Compact APIC-463 model', true]
+ ].forEach(([label, compact]) => {
+ describe(label, () => {
+ let element;
+ let amf;
+ let payload;
+ before(async () => {
+ amf = await AmfLoader.load(compact, 'APIC-463');
+ payload = AmfLoader.lookupPayload(amf, '/test', 'post');
+ });
+
+ beforeEach(async () => {
+ element = await openedFixture();
+ element.amf = amf;
+ element.body = payload;
+ await nextFrame();
+ await aTimeout();
+ });
+
+ it('Renders media types', async () => {
+ await nextFrame();
+ const node = element.shadowRoot.querySelector('.media-type-selector');
+ assert.ok(node);
+ });
+
+ it('renderMediaSelector is true', () => {
+ assert.isTrue(element._renderMediaSelector);
+ });
+ });
+ });
+ });
});