From 8c2d8a5e792dc1bb40ad8575820db066d378b5ac Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Thu, 18 Jul 2024 14:49:36 -0300 Subject: [PATCH 1/7] feat: avro --- .gitignore | 1 + demo/apis.json | 1 + demo/models/avro.json | 617 ++++++++++++ demo/models/demo-api/demo-api-2.raml | 1401 ++++++++++++++++++++++++++ demo/standalone/app.js | 2 + 5 files changed, 2022 insertions(+) create mode 100644 demo/models/avro.json create mode 100644 demo/models/demo-api/demo-api-2.raml diff --git a/.gitignore b/.gitignore index a656c3a18..5632caaae 100644 --- a/.gitignore +++ b/.gitignore @@ -63,5 +63,6 @@ dist/ demo/models/*.json demo/models/flattened/*.json !demo/models/jldAsync26.json +!demo/models/avro.json .idea/ diff --git a/demo/apis.json b/demo/apis.json index 875ede3eb..c1138334a 100644 --- a/demo/apis.json +++ b/demo/apis.json @@ -1,5 +1,6 @@ { "models/demo-api/demo-api.raml": "RAML 1.0", + "models/demo-api/demo-api-2.raml": "RAML 1.0", "models/appian-api/appian-api.raml": "RAML 1.0", "models/oAuth2/oAuth2.raml": "RAML 1.0", "models/nexmo-sms-api/nexmo-sms-api.raml": "RAML 1.0", diff --git a/demo/models/avro.json b/demo/models/avro.json new file mode 100644 index 000000000..d8596342c --- /dev/null +++ b/demo/models/avro.json @@ -0,0 +1,617 @@ +[ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml", + "@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": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api", + "@type": [ + "http://a.ml/vocabularies/apiContract#AsyncAPI", + "http://a.ml/vocabularies/apiContract#API", + "http://a.ml/vocabularies/document#RootDomainElement", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "My API" + } + ], + "http://a.ml/vocabularies/core#version": [ + { + "@value": "1.0.0" + } + ], + "http://a.ml/vocabularies/apiContract#endpoint": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel", + "@type": [ + "http://a.ml/vocabularies/apiContract#EndPoint", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/apiContract#path": [ + { + "@value": "mychannel" + } + ], + "http://a.ml/vocabularies/apiContract#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish", + "@type": [ + "http://a.ml/vocabularies/apiContract#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/apiContract#method": [ + { + "@value": "publish" + } + ], + "http://a.ml/vocabularies/apiContract#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request", + "@type": [ + "http://a.ml/vocabularies/apiContract#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/apiContract#Message", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/apiContract#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default", + "@type": [ + "http://a.ml/vocabularies/apiContract#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/apiContract#schemaMediaType": [ + { + "@value": "application/vnd.apache.avro;version=1.9.0" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person", + "@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#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/name", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/name/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/name/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/name/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/age", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/age/union/age", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "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://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/age/union/age/anyOf/nil/null", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "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": "null" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/age/union/age/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#int" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "age" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/age/union/age/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "null" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#nil" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/age/union/age/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/age/union/age/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/age/union/age" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "union" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "age" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/age/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "null" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#nil" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "ProgrammingLanguage" + } + ], + "http://www.w3.org/ns/shacl#in": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage/list", + "@type": "http://www.w3.org/2000/01/rdf-schema#Seq", + "http://www.w3.org/2000/01/rdf-schema#_1": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage/in/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "JS" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_2": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage/in/data-node_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "Java" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_3": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage/in/data-node_2", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "Go" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_4": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage/in/data-node_3", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "Rust" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_5": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage/in/data-node_4", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "C" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/favoriteProgrammingLanguage/scalar/ProgrammingLanguage" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "enum" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "favoriteProgrammingLanguage" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address/shape/Address", + "@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#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address/shape/Address/property/property/zipcode", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address/shape/Address/property/property/zipcode/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#int" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address/shape/Address/property/property/zipcode/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address/shape/Address/property/property/zipcode/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address/shape/Address/property/property/zipcode/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "int" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "zipcode" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Address" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address/shape/Address/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address/shape/Address/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/property/property/address/shape/Address" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "record" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "address" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Person" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/Person" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "record" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document#root": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/document#processingData": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/BaseUnitProcessingData", + "@type": [ + "http://a.ml/vocabularies/document#APIContractProcessingData" + ], + "http://a.ml/vocabularies/apiContract#modelVersion": [ + { + "@value": "3.9.0" + } + ], + "http://a.ml/vocabularies/document#sourceSpec": [ + { + "@value": "ASYNC 2.0" + } + ] + } + ] + } + ] + \ No newline at end of file diff --git a/demo/models/demo-api/demo-api-2.raml b/demo/models/demo-api/demo-api-2.raml new file mode 100644 index 000000000..4ec42491e --- /dev/null +++ b/demo/models/demo-api/demo-api-2.raml @@ -0,0 +1,1401 @@ +#%RAML 1.0 +title: API body demo +version: v1 +baseUri: http://{instance}.domain.com/ + +mediaType: [application/json, application/xml] +protocols: [HTTP, HTTPS] + +description: | + + # This is a description of demo API. + ```javascript + This is **markdown**. + ``` + # Encabezado 1 + + ## Encabezado 2 + + ### Encabezado 3 + + #### Encabezado 4 + + ##### Encabezado 5 + + ###### Encabezado 6 + + [Encabezado](#Encabezado) + + + **Negrita** + + _Italica_ + + > Test + + ``` + Code + ``` + + 1. List 1 + 2. List 2 + + - Item 1 + - Item 2 + + Item 2 + + | Api | Version | + |----------|---------| + | American | v1.0 | + + ------ + +baseUriParameters: + instance: + description: | + The execution environments. Can be one of: + - development + - staging + - qa + - production + type: string + enum: [development, staging, qa, production] + pattern: (development|staging|qa|production) + default: production +annotationTypes: + deprecated: string + annotationTest: nil + clearanceLevel: + properties: + level: + enum: [ low, medium, high ] + required: true + signature: + pattern: "\\d{3}-\\w{12}" + required: true +uses: + ExampleType: resourceTypes/example-types.raml +types: + Image: !include resourceTypes/image.raml + Resource: !include resourceTypes/resource.raml + AppPerson: !include resourceTypes/app-person.raml + Product: !include resourceTypes/product.raml + ErrorResource: + description: A response that is errored + type: object + properties: + error: + type: boolean + required: true + example: true + default: true + description: Indicate that the response is errored. + message: + type: string + description: The error message associated with the error. + required: true + Feature: + description: A feature to test enum values in the URI parameters. + type: string + enum: + - A + - B + - C + Parent: + type: object + properties: + id: number + etag: string + Child: + type: Parent + properties: + name: string + MultipartPerson: + properties: + name: + type: string + description: Name of the person + email: + type: string + image: + type: file + fileTypes: ['image/jpeg', 'image/png'] + age: + type: number + description: Age of the person. + optParam: + type: number + required: false + description: Age of the person. + QueryParam: !include types/query-string.raml + OtherQueryParam: !include types/other-query-string.raml + Dimension: !include types/dimensions.raml + SchemaPerson: + type: !include schemas/person.json + example: !include examples/person.json + Picture: + displayName: Pic + type: Resource + description: The user's profile picture. + properties: + url: + type: string + required: false + description: A URL that points to a profile picture of this user. + dimension: Dimension + XmlTypeSchema: + type: !include schemas/product.xsd + example: !include examples/product.xml + Person: + properties: + name: + type: string + xml: + attribute: true + name: "fullname" + addresses: + type: Address[] + xml: + wrapped: true # serialize it into its own ... XML element + SimpleSchema: + example: | + { + "status":"success" + } + Address: + properties: + street: string + city: string + AddressWithExamples: + properties: + street: string + zip: + type: string + example: "94100" + default: "00000" + house: + type: number + example: 1 + ScalarType: string + Unionable: + type: ErrorResource | Product + Notification: + properties: + scalarArray: + required: true + type: array + items: integer + description: Integer array item type + displayName: Scalar array (integer) + otherScalar: + required: false + type: string[] + ArrayType: + type: string[] + FileType: + type: object + properties: + filetype: + minLength: 100 + maxLength: 300 + required: false + type: file + fileTypes: + - image/png + - image/jpeg + DefaultArray: + type: array + default: [] + DefaultString: + type: string + default: 'default' + Arrays: + type: object + properties: + testRepeatable: + (deprecated): Test parameter will be removed in next version of the API. + required: true + type: string[] + example: [value1, value2] + description: A string array with an example and annotation. + minItems: 1 + maxItems: 10 + numericRepeatable: + required: true + type: integer[] + examples: + Some-test-example: [123, 456] + Other-example: [1011, 1213] + notRequiredRepeatable: + (annotationTest): + type: array + items: date-only + required: false + multiArray: + type: array + items: boolean | string + withEmbeddedType: + type: object + properties: + imageProperty: Image + other: string + ComplexRecursive: + type: object + properties: + iteration1: + properties: + images: + type: array + items: Image + userImage: + type: Image + properties: + options: + type: string | Product + user: + type: AppPerson + ieration2: + type: Product + properties: + images: + type: Image[] + PropertyArray: + type: object + properties: + etag: + type: string + nextPageToken: + type: string + data: + type: array + items: Product + complex: + type: array + items: string | number | Product + NilType: nil + AnyType: any + Arrable2: + type: string[] + BooleanType: boolean + EnurableType: + description: | + Test description for a type. + type: object + minProperties: 2 + maxProperties: 12 + examples: + NormalExample: + e1: v1 + e2: e2 + OtherExample: + e1: v4 + e2: e4 + properties: + e1: + (deprecated): | + This property is deprecated. + + Please, do not use it in new projects. + (clearanceLevel): + level: low + signature: 230-ghtwvfrs1itr + type: string + displayName: Enumerable 1 + description: | + Example enumerable type to test the documentation + element. + + It renders `Markdown` model. + enum: [v1, v2, v3, v4] + required: false + examples: + "Example 1": v1 + "Example 2": v2 + pattern: "v[1-4]" + default: v1 + e2: + type: string + enum: [e1, e2, e3, e4] + required: true + example: e1 + XmlSchema: + (deprecated): Test annotation + description: | + XML type that has only xsd schema and example + type: !include /schemas/product.xsd + example: !include /examples/product.xml + UnionArray: + type: Arrable2 | string + Arrable: + type: array + items: Picture + TrademarkPierreNotWorkingType: + type: array + items: + type: string + enum: + - NON_USE + - INTERNATIONAL_REGISTRATION + - REGULATED + - SERIES + ComplexPerson: + properties: + error?: + type: boolean + xml: + attribute: true + id: + type: string | number + name: string + birthday: date-only + gender: + type: string + examples: + Male: male + Female: female + url: string + tagline: string + language: + type: string + default: PL + etag: + type: string + example: etag example + image: + type: object + properties: + url: string + thumb: string + opt?: Image | string + example: + error: false + id: 1234 + name: Pawel Psztyc + birthday: 20-10-1983 + tagline: Test example + url: https://domain.com + language: PL + etag: test + image: + url: https://image.com + thumb: https://image.com/thumb + PropertyExamples: + properties: + xtra: + type: string + xml: + attribute: true + firstName: + type: string + example: Pawel + lastName: + type: string + example: Psztyc + address: Address + num: number + int: integer + bool: boolean + defVal: + type: integer + default: 10 + example: 1 + TypeExamples: + properties: + firstName: string + lastName: string + example: + firstName: Pawel + lastName: Psztyc + ScalarWithExample: + type: number + example: 5 + ScalarArrayWithExample: + type: number[] + example: [1, 5] + Images: + type: array + items: Image + Imgs: + properties: + something: string + images: + type: Image[] + xml: + wrapped: true + UnionType: Image | Imgs + JsonExampleInclude: + type: ComplexPerson + example: !include schemas/example.json + SimpleInlineExample: + type: object + properties: + testProperty: boolean + example: + testProperty: true + DataTypesExample: + type: object + properties: + typeString: + type: string + example: String example + typeNumber: + type: number + example: 123456 + typeInt: + type: integer + example: 1234546 + typeDecimal: + type: number + multipleOf: 0.01 + example: 10.67 + typeBool: + type: boolean + example: true + typeNull: + type: nil + example: null + typeNegativeInt: + type: integer + example: -12 + typeNumberFormatInt64: + type: number + minimum: 3 + maximum: 5 + format: int64 + multipleOf: 4 + example: 8 + typeNumFormatInt32: + type: number + format: int32 + example: 109298 + typeNumFormatInt: + type: number + format: int + example: 11 + typeNumFormatLong: + type: number + format: long + example: 123456789 + typeNumFormatFloat: + type: number + format: float + example: 1234567.89 + typeNumFormatDouble: + type: number + format: double + example: 1234.56789 + typeNumFormatInt8: + type: number + format: int8 + example: 1 + typeNumFormatInt16: + type: number + format: int16 + example: 2 + typeIntFormatInt8: + type: integer + minimum: 3 + maximum: 5 + format: int8 + multipleOf: 1 + example: 12 + ScalarArray: string[] + ArrayTypeWithExample: + type: array + items: Image + example: [{"url": "url 1", "thumb": "thumb 1"}] + ArrayWithoutItems: + type: array + displayName: Incomplete array + +resourceTypes: + ResourceNotFound: + get: + responses: + 404: + body: + application/json: + displayName: Not found response + type: ErrorResource + application/xml: + displayName: Not found response + type: !include schemas/error-response.xsd + example: !include examples/e404.xml + UnauthorizedResponse: + get: + responses: + 404: + body: + application/json: + displayName: Unauthorized response + type: ErrorResource + application/xml: + displayName: Unauthorized response + type: !include schemas/error-response.xsd + example: !include examples/e401.xml + RequestErrorResponse: + get: + responses: + 400: + description: The error response when one of the parameters is invalid and can't be parsed. Nothing can be done at the time except correcting the request to send valid data. + body: + application/json: + displayName: Invalid request + type: ErrorResource + application/xml: + displayName: Invalid request + type: !include schemas/error-response.xsd + example: !include examples/e400.xml +traits: + Paginated: !include traits/pagination.raml + Adminable: !include traits/adminable.raml +securitySchemes: + oauth_2_0: !include securitySchemes/oauth_2_0.raml + x-custom: !include securitySchemes/x-custom.raml + basic: !include securitySchemes/basic.raml + oauth_1_0: !include securitySchemes/oauth_1_0.raml + +documentation: + - title: Test doc + content: Test content + +/people: + displayName: People + get: + (annotationTest): + displayName: List people + description: Use this method to list all the people. + is: [Paginated: {resourceType: AppPerson}] + queryParameters: + nilParam: nil + headers: + x-people-op-id: + (annotationTest): + type: string + pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[4][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$ + description: People ops ID. It is UUID v4 string + example: 9719fa6f-c666-48e0-a191-290890760b30 + x-nil: + type: nil + post: + (deprecated): | + This method is not deprecated. And this is only an annotation test. + displayName: Create a person + description: Use this method to add new person + body: + application/json: + (deprecated): This response type is deprecated and soon will be replaced. + type: AppPerson + application/xml: + type: !include schemas/person.xsd + example: !include examples/person.xml + put: + displayName: Update a person + description: Updates the person in the datastore. + body: + application/json: + schema: !include schemas/person.json + example: !include examples/person.json + application/xml: + type: !include schemas/person.xsd + example: !include examples/person.xml + responses: + 200: + (deprecated): This response type is deprecated and soon will be replaced. + description: | + Success response for the body + headers: + X-Frame-Options: + type: string + examples: + Deny: DENY + SameOrigin: SAMEORIGIN + body: + application/json: + schema: !include schemas/person.json + example: !include examples/person.json + application/xml: + type: !include schemas/person.xsd + example: !include examples/person.xml + 400: + description: | + Client error + body: + application/json: + schema: !include schemas/error.json + example: !include examples/error.json + application/xml: + type: !include schemas/error.xsd + example: !include examples/error.xml + /{personId}: + securedBy: x-custom + type: ResourceNotFound + displayName: A person + description: The endpoint to access information about the person + uriParameters: + personId: + type: integer + required: true + description: The ID of the person in the system. It is generated by the database numeric value for the person. + example: 1234 + get: + displayName: Get a person + description: Returns a person + headers: + x-client-id: + (deprecated): This will be replaced + example: 123456-acme.client.com + description: The application id used to make a request. It can be obtained in the developer console. + type: string + required: true + x-people-op-id: + (annotationTest): + type: string + pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[4][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$ + description: People ops ID. It is UUID v4 string + example: 9719fa6f-c666-48e0-a191-290890760b30 + x-enum: + type: string + enum: [a,b,c] + responses: + 200: + body: + application/json: + type: AppPerson + application/xml: + type: !include schemas/person.xsd + example: !include examples/person.xml + delete: + displayName: Remove a person + description: Removes the person from the datastore. This method do not returns any data in 200 response. + responses: + 204: + headers: + x-people-op-id: + (annotationTest): + type: string + pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[4][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$ + description: People ops ID. It is UUID v4 string + example: 9719fa6f-c666-48e0-a191-290890760b30 + put: + displayName: Update a person + description: Updates the person in the datastore. + queryParameters: + testPatam: string + body: + application/json: + type: AppPerson + application/xml: + type: !include schemas/person.xsd + example: !include examples/person.xml + responses: + 200: + headers: + x-people-op-id: + (annotationTest): + type: string + pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[4][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$ + description: People ops ID. It is UUID v4 string + example: 9719fa6f-c666-48e0-a191-290890760b30 +/products: + displayName: Products + description: The API is to be used to access data about the products. + post: + displayName: Create product + description: | + Creates a product in the store. + While creating a product the `id` and `etag` properties will be ignored. + + The endpoint will reject the request if exactly the same product is already defined in the + datastore (all properties of both objects equals). Newly created product is available + for listing but **it won't be available for ordering API** until it's availability is not set. + body: + application/json: + type: Product + application/xml: + type: !include schemas/product.xsd + example: !include examples/product.xml + responses: + 200: + body: + application/json: + type: Product + examples: + Product: + id: d697f5cea85011e680f576304dec7eb7 + name: Super product + quantity: 125 + unit: ml + upc: "123456789101" + available: true + etag: "W/\"686897696a7c876b7e\"" + OtherProduct: + id: 123e4567e89b12d3a456426655440000 + name: Acme Product + quantity: 1 + unit: kg + upc: "223456789101" + available: true + etag: "W/\"123456789\"" + application/xml: + type: !include schemas/product.xsd + example: !include examples/product.xml + 400: + description: The request has been rejected. Probably the product already exists in the datastore. +/orgs: + /{orgId}: + get: + displayName: Get organization + description: Returns an organization info. + responses: + 200: + body: + application/json: + type: ExampleType.Org + properties: + id: + type: string + description: UUID generated ID + example: + id: "12345" + onCall: + firstname: nico + lastname: ark + kind: AcmeAdmin + clearanceLevel: low + phone: "12321" + Head: + firstname: nico + lastname: ark + kind: AcmeManager + reports: + - + firstname: nico + lastname: ark + kind: admin + phone: "123-23" + put: + body: + application/json: + type: ExampleType.Org + properties: + id: + type: string + description: UUID generated ID + responses: + 200: + body: + application/json: + type: ExampleType.Org + /managers: + get: + responses: + 200: + body: + application/json: + type: ExampleType.Manager[] +/messages: + securedBy: [oauth_2_0] + post: + description: Create a new message + is: [Adminable] + body: + application/json: + type: object + properties: + receiver: + type: string + description: receiver of the message + required: true + body: + type: string + description: A message body + required: true + important: + type: boolean + description: If true then the message will be marked as important + default: false + required: true + get: + description: | + List user messages. It returns an array of messages for last of 7 days if + `since` property is not set. + You can use `since` and `until` query parameters to control messages time + span. + queryParameters: + until: + (annotationTest): + type: date-only + description: Date right limit of the messages query. + example: 2017-05-12 + since: + type: date-only + description: Date left limit of the messages query. + example: 2017-05-10 + responses: + 200: + body: + application/json: + type: array + items: !include resourceTypes/message-type.raml + example: !include examples/messages-example.json + /bulk: + post: + description: Bulk create messages. + is: [Adminable] + body: + application/json: + (annotationTest): + type: array + items: !include resourceTypes/message-sent-type.raml + examples: + Example1: !include examples/messages-sent-example.json +/arrayBody: + post: + body: + application/json: + (deprecated): This response type is deprecated and soon will be replaced. + description: | + This demonstrates a body as an Array + type: AppPerson[] +/multipart: + post: + body: + multipart/form-data: + type: MultipartPerson +/query-string-test: + /node-type: + get: + queryString: QueryParam + /union: + get: + queryString: QueryParam | OtherQueryParam + /scalar: + get: + queryString: + type: string + example: test + /array: + get: + queryString: + type: OtherQueryParam[] +/query-parameters/{feature}: + (deprecated): This endpoint is deprecated and will be removed. + uriParameters: + feature: + type: string + enum: + - A + - B + - C + get: + (deprecated): This method is deprecated and will be removed. + (clearanceLevel): + level: high + signature: 230-ghtwvfrs1itr + description: To test enum values in the URI parameters for inline type declaration. + queryParameters: + testRepeatable: + (deprecated): Test parameter will be removed in next version of the API. + required: true + type: string[] + example: [value1, value2] + numericRepeatable: + required: true + type: integer[] + examples: + Some-test-example: [123, 456] + Other-example: [1011, 1213] + notRequiredRepeatable: + (annotationTest): + type: array + items: date-only + required: false + /{typeFeature}: + (annotationTest): + (deprecated): This method will be removed in future release of the API. + uriParameters: + typeFeature: + (annotationTest): + type: Feature + get: + (deprecated): This endpoint is deprecated and will be removed. + description: To test enum values in the URI parameters for global type declaration. +/json-schema: + post: + body: + application/json: + type: SchemaPerson +/xml-schema: + post: + body: + application/xml: + type: XmlTypeSchema +/raml-xml-schema: + post: + body: + application/xml: + type: Person +/raml-json-simple-schema: + post: + body: + application/json: + type: SimpleSchema +/raml-json-no-example-schema: + post: + body: + application/json: + type: Address +/test-headers: + get: + headers: + x-deprecated: + (deprecated): | + This property is deprecated. + + Please, do not use it in new projects. + type: string + required: false + displayName: Deprecated + minLength: 0 + maxLength: 100 + pattern: "[a-zA-Z]*" + description: | + This is a description + examples: + Googd: "" + Bad: "something" + x-enumerable: + (clearanceLevel): + level: low + signature: 230-ghtwvfrs1itr + type: string + displayName: Enumerable 1 + description: | + Example enumerable type to test the documentation + element. + + It renders `Markdown` model. + enum: [v1, v2, v3, v4] + required: false + examples: + Version1: v1 + Version2: v2 + pattern: "v[1-4]" + default: v1 + x-repeat: + type: array + items: string + description: | + Hello world + x-unionable: + type: string | number + Accept: + type: string + default: application/json + description: | + Supported mime tyes in this API are: + + - `application/json` + - `application/xml` + - `application/x-vnd.unknown` +/no-desc: + get: + responses: + 200: + 405: + 201: +/files: + displayName: Files + post: + displayName: Insert + description: | + Insert a new file. + This method supports an /upload URI and accepts uploaded media with the following characteristics: + - Maximum file size: 5120GB + - Accepted Media MIME types: */* + Note: Apps creating shortcuts with files.insert must specify the MIME type `application/vnd.google-apps.drive-sdk`. + Apps should specify a file extension in the title property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `"title": "cat.jpg"` in the metadata. + Subsequent GET requests include the read-only fileExtension property populated with the extension originally specified in the title property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Google Drive attempts to determine the extension based on the file's MIME type. + ### HTTP request + This method provides media upload functionality through two separate URIs. For more details, see the document on media upload. + - Upload URI, for media upload requests: `POST https://www.googleapis.com/upload/drive/v2/files` + - Metadata URI, for metadata-only requests: `POST https://www.googleapis.com/drive/v2/files` + get: + securedBy: [basic] + displayName: list + description: | + Lists the user's files. Try it now or see an example. + Requests with `files.list` accept the `q` parameter, which is a search query combining one or more search terms. For more information, see Search for files. + Note: Note: This method returns all files by default. This includes files with trashed=true in the results. Use the trashed=false query parameter to filter these from the results. + /file: + post: + body: + image/png: + type: file + /multipart: + post: + body: + multipart/form-data: + properties: + avatar: + type: file +/external-data-type: + post: + body: + application/json: + type: !include types/external-type.raml +/referenceId: + post: + body: + application/json: + type: SchemaPerson +/permissionIds/{email}: + uriParameters: + email: + type: string + description: The email address for which to return a permission ID + get: + description: Returns the permission ID for an email address. +/changes: + displayName: Changes + get: + + /{changeId}: + uriParameters: + changeId: + type: string + description: The ID of the change. + get: + description: Gets a specific change. + + /watch: + post: + queryParameters: + spaces: + type: string + required: false + description: | + A comma-separated list of spaces to query. Supported values are: + - **drive** + - **appDataFolder** + - **photos** + description: "Watch for all changes to a user's Drive." + headers: + x-test: string + get: + description: Dummy function + +/emptybody: + post: + body: + application/json: + +/unionBody: + post: + body: + application/json: + type: AppPerson | Product + example: + id: "R34fg663H9KW9MMSKISI" + name: "Pawel Psztyc" + birthday: "1983-10-20" + gender: male + url: "https://domain.com/profile/pawel.psztyc" + image: + url: https://domain.com/profile/pawel.psztyc/image + thumb: https://domain.com/profile/pawel.psztyc/image/thumb + tagline: Some text about me. + language: en_GB + etag: "W\\244m4n5kj3gbn2nj4k4n4" + +/emptyBodyWithAllProperties: + post: + body: + application/json: + displayName: My body name + examples: + Product: + id: d697f5cea85011e680f576304dec7eb7 + name: Super product + quantity: 125 + unit: ml + upc: "123456789101" + available: true + etag: "W/\"686897696a7c876b7e\"" + OtherProduct: + id: 123e4567e89b12d3a456426655440000 + name: Acme Product + quantity: 1 + unit: kg + upc: "223456789101" + available: true + etag: "W/\"123456789\"" + description: My description of `body`. + default: None + +/emptyBodyWithExample: + post: + body: + application/json: + example: | + { + "address": { + "id":"test-id" + } + } +/IncludedInType: + post: + body: + application/json: + type: ComplexPerson + application/xml: + type: ComplexPerson +/union: + post: + body: + application/json: + type: ComplexPerson | PropertyExamples + application/xml: + type: ComplexPerson | PropertyExamples +/propertyExamples: + post: + body: + application/json: + type: PropertyExamples + application/xml: + type: PropertyExamples +/arrayTypeExample: + post: + body: + application/json: + type: TypeExamples[] +/IncludedInline: + post: + body: + application/json: + type: ComplexPerson + example: + error: false + id: 1234 + name: Inline person + birthday: 01-01-1990 + tagline: Test example + url: https://domain.com + language: PL + etag: test + image: + url: https://image.com + thumb: https://image.com/thumb + application/xml: + type: !include schemas/example.xsd + example: !include schemasexample.xml +/IncludedInlineJson: + post: + body: + application/json: + type: !include types/user.raml + example: !include schemas/user.json +/user-raml-example: + post: + body: + application/json: + type: !include types/user-raml-example.raml + examples: + User 3: + id: uid3 + username: ppsztyc + firstName: Pawel + lastName: Psztyc + profilePhoto: https://img/domain.com/ppsztyc + email: ppsztyc@domain.com + User 4: + id: uid4 + username: jdoe + firstName: John + lastName: Does + profilePhoto: https://img/domain.com/jdoe + email: jdoe@domain.com + application/xml: + type: !include types/user-raml-example.raml +/named-linked-example: + post: + body: + application/json: + examples: !include examples/named-example-with-link.raml + application/xml: + examples: !include examples/named-example-with-link.raml +/named-example: + post: + body: + application/json: + examples: !include examples/named-example.raml + application/xml: + examples: !include examples/named-example.raml +/users-json-example: + post: + body: + application/json: + type: !include types/users-json-example.raml +/user-json-example: + post: + body: + application/json: + type: !include types/user-json-example.raml +/users-raml-example: + post: + body: + application/json: + type: !include types/users-raml-example.raml + application/xml: + type: !include types/users-raml-example.raml +/arrayScalar: + post: + body: + application/json: + type: array + items: [number] +/arrayScalarWithExample: + post: + body: + application/json: + type: array + items: [number] + example: [1, 2, 3] +/arrayPropertyExamples: + post: + body: + application/json: + type: PropertyExamples[] + application/xml: + type: PropertyExamples[] +/arrayPropertyGeneratedExamples: + post: + body: + application/json: + type: array + items: + properties: + test: boolean + other: string + application/xml: + type: array + items: + properties: + test: boolean + other: string +/scalar: + post: + body: + application/json: + type: integer +/test-parameters/{feature}: + (deprecated): This endpoint is deprecated and will be removed. + uriParameters: + feature: + type: string + enum: + - A + - B + - C + get: + (deprecated): This method is deprecated and will be removed. + (clearanceLevel): + level: high + signature: 230-ghtwvfrs1itr + description: To test enum values in the URI parameters for inline type declaration. + queryParameters: + testRepeatable: + (deprecated): Test parameter will be removed in next version of the API. + required: true + type: string[] + example: [value1, value2] + numericRepeatable: + required: true + type: integer[] + examples: + Some-test-example: [123, 456] + Other-example: [1011, 1213] + notRequiredRepeatable: + (annotationTest): + type: array + items: date-only + required: false + /{typeFeature}: + (annotationTest): + (deprecated): This method will be removed in future release of the API. + uriParameters: + typeFeature: + (annotationTest): + type: Feature + get: + (deprecated): This endpoint is deprecated and will be removed. + description: To test enum values in the URI parameters for global type declaration. +/defaultValues: + get: + headers: + x-string: + type: string + default: TestDefault + x-integer: + type: integer + default: 1234 + x-boolean: + type: boolean + default: false + x-array: + type: string[] + default: [ArrayTest, OtherTest] +/dateformats: + get: + headers: + x-date-only: date-only + x-time-only: time-only + x-datetime-only: datetime-only + x-datetime: datetime + x-datetime-format-default: + type: datetime + format: rfc3339 + x-datetime-format: + type: datetime + format: rfc2616 +/nillableUnion: + get: + headers: + nillable: + type: integer | nil + notUnion: nil + notNillable: integer + notNillableUnion: integer | string +/no-body: + get: + responses: + 200: + description: Test +/urlencoded: + post: + body: + application/x-www-form-urlencoded: + type: Product +/content-type: + post: + headers: + Content-Type: + default: application/json + body: + type: object + properties: + error: + type: boolean + default: false +/post-headers: + post: + headers: + x-string: + required: true + type: string + default: my-value + body: + application/json: + type: AppPerson diff --git a/demo/standalone/app.js b/demo/standalone/app.js index 89e6fbc5a..299124801 100644 --- a/demo/standalone/app.js +++ b/demo/standalone/app.js @@ -14,8 +14,10 @@ class ApicApplication extends DemoBase { ['google-drive-api', 'Google Drive API'], ['httpbin', 'HTTPbin API'], ['oAuth2', 'oAuth2'], + ['avro', 'avro'], ['data-type-fragment', 'RAML data type fragment'], ['demo-api', 'Demo API'], + ['demo-api-2', 'Demo API 2'], ['jldAsync26', 'Async API 2.6'], ['asyncApi-2.6', 'Async API 2.6-2'], ['SE-12703', 'OAS allOf body'], From e9c40d1ed636c487193ef788eb3b1e8c5aedb16e Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Thu, 18 Jul 2024 14:55:09 -0300 Subject: [PATCH 2/7] feat: update package lock --- package-lock.json | 43 ++++++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index d4f09fd82..b3ac4bfec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25052,7 +25052,7 @@ "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.1", - "semver": "7.5.4" + "semver": "^6.3.0" } }, "@babel/eslint-parser": { @@ -25064,7 +25064,7 @@ "requires": { "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", "eslint-visitor-keys": "^2.1.0", - "semver": "7.5.4" + "semver": "^6.3.1" } }, "@babel/eslint-plugin": { @@ -25130,7 +25130,7 @@ "@babel/helper-validator-option": "^7.18.6", "browserslist": "^4.21.3", "lru-cache": "^5.1.1", - "semver": "7.5.4" + "semver": "^6.3.0" } }, "@babel/helper-create-class-features-plugin": { @@ -25169,7 +25169,7 @@ "debug": "^4.1.1", "lodash.debounce": "^4.0.8", "resolve": "^1.14.2", - "semver": "7.5.4" + "semver": "^6.1.2" } }, "@babel/helper-environment-visitor": { @@ -25950,7 +25950,7 @@ "babel-plugin-polyfill-corejs2": "^0.3.3", "babel-plugin-polyfill-corejs3": "^0.6.0", "babel-plugin-polyfill-regenerator": "^0.4.1", - "semver": "7.5.4" + "semver": "^6.3.0" } }, "@babel/plugin-transform-shorthand-properties": { @@ -26098,7 +26098,7 @@ "babel-plugin-polyfill-corejs3": "^0.6.0", "babel-plugin-polyfill-regenerator": "^0.4.1", "core-js-compat": "^3.25.1", - "semver": "7.5.4" + "semver": "^6.3.0" } }, "@babel/preset-modules": { @@ -26343,7 +26343,7 @@ "dev": true, "requires": { "@commitlint/types": "^11.0.0", - "semver": "7.5.4" + "semver": "7.3.2" } }, "@commitlint/lint": { @@ -29674,7 +29674,7 @@ "integrity": "sha512-XVKH79pk4d3EHRhofete8eAnqto1e8mCRAqPV00KLNFzCWSe8sWmLnqKCqkPNARC6nksMaGrATnA5sPDRllMpQ==", "dev": true, "requires": { - "semver": "7.5.4" + "semver": "^7.3.4" } }, "@web/dev-server": { @@ -30485,7 +30485,7 @@ "requires": { "@babel/compat-data": "^7.17.7", "@babel/helper-define-polyfill-provider": "^0.3.3", - "semver": "7.5.4" + "semver": "^6.1.1" } }, "babel-plugin-polyfill-corejs3": { @@ -30776,7 +30776,7 @@ "requires": { "browserslist": "^4.19.1", "electron-to-chromium": "^1.4.67", - "semver": "7.5.4", + "semver": "^7.3.5", "useragent": "^2.3.0", "yamlparser": "^0.0.2" } @@ -30846,10 +30846,10 @@ "get-value": "^2.0.6", "has-value": "^1.0.0", "isobject": "^3.0.1", - "set-value": "4.1.0", + "set-value": "^2.0.0", "to-object-path": "^0.3.0", "union-value": "^1.0.0", - "unset-value": "2.0.1" + "unset-value": "^1.0.0" } }, "cache-content-type": { @@ -31481,7 +31481,7 @@ "rdf-parse": "^1.9.1", "rdf-quad": "^1.5.0", "rdf-terms": "^1.7.0", - "semver": "7.5.4", + "semver": "^7.3.2", "winston": "^3.3.3" }, "dependencies": { @@ -31729,7 +31729,7 @@ "dev": true, "requires": { "pify": "^4.0.1", - "semver": "7.5.4" + "semver": "^5.6.0" } } } @@ -32188,8 +32188,7 @@ "dev": true }, "decode-uri-component": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.4.1.tgz", + "version": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.4.1.tgz", "integrity": "sha512-+8VxcR21HhTy8nOt6jf20w0c9CADrw1O8d+VZ/YzzCt4bJ3uBjw+D1q2osAB8RnpwwaeYBxy0HyKQxD5JBMuuQ==", "dev": true }, @@ -38718,7 +38717,7 @@ "requires": { "hosted-git-info": "^2.1.4", "resolve": "^1.10.0", - "semver": "7.5.4", + "semver": "2 || 3 || 4 || 5", "validate-npm-package-license": "^3.0.1" } }, @@ -39634,8 +39633,7 @@ "dev": true }, "set-value": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-4.1.0.tgz", + "version": "https://registry.npmjs.org/set-value/-/set-value-4.1.0.tgz", "integrity": "sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==", "dev": true, "requires": { @@ -39971,7 +39969,7 @@ "dev": true, "requires": { "atob": "^2.1.2", - "decode-uri-component": "0.4.1", + "decode-uri-component": "^0.2.0", "resolve-url": "^0.2.1", "source-map-url": "^0.4.0", "urix": "^0.1.0" @@ -41231,7 +41229,7 @@ "arr-union": "^3.1.0", "get-value": "^2.0.6", "is-extendable": "^0.1.1", - "set-value": "4.1.0" + "set-value": "^2.0.1" }, "dependencies": { "is-extendable": { @@ -41327,8 +41325,7 @@ } }, "unset-value": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-2.0.1.tgz", + "version": "https://registry.npmjs.org/unset-value/-/unset-value-2.0.1.tgz", "integrity": "sha512-2hvrBfjUE00PkqN+q0XP6yRAOGrR06uSiUoIQGZkc7GxvQ9H7v8quUPNtZjMg4uux69i8HWpIjLPUKwCuRGyNg==", "dev": true, "requires": { From b8bb7dff1c573f4c0b334482f9c82bb2224eaec8 Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Fri, 19 Jul 2024 10:26:26 -0300 Subject: [PATCH 3/7] add other json --- demo/standalone/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/standalone/app.js b/demo/standalone/app.js index 299124801..075811722 100644 --- a/demo/standalone/app.js +++ b/demo/standalone/app.js @@ -15,6 +15,7 @@ class ApicApplication extends DemoBase { ['httpbin', 'HTTPbin API'], ['oAuth2', 'oAuth2'], ['avro', 'avro'], + ['avro2', 'avro2'], ['data-type-fragment', 'RAML data type fragment'], ['demo-api', 'Demo API'], ['demo-api-2', 'Demo API 2'], From f94694c92dcc899ba1d260e734ebdd9d6646d3d4 Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Tue, 6 Aug 2024 14:24:58 -0300 Subject: [PATCH 4/7] show media type --- demo/standalone/app.js | 1 + package-lock.json | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/demo/standalone/app.js b/demo/standalone/app.js index 075811722..d63f921b9 100644 --- a/demo/standalone/app.js +++ b/demo/standalone/app.js @@ -16,6 +16,7 @@ class ApicApplication extends DemoBase { ['oAuth2', 'oAuth2'], ['avro', 'avro'], ['avro2', 'avro2'], + ['avro-inline-other', 'avro3'], ['data-type-fragment', 'RAML data type fragment'], ['demo-api', 'Demo API'], ['demo-api-2', 'Demo API 2'], diff --git a/package-lock.json b/package-lock.json index b3ac4bfec..6941522e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -920,9 +920,9 @@ } }, "node_modules/@api-components/api-body-document": { - "version": "4.4.10", - "resolved": "https://registry.npmjs.org/@api-components/api-body-document/-/api-body-document-4.4.10.tgz", - "integrity": "sha512-3v28PmdMKwCCd39tf9hweydAxER7VQLGlgev3CNiLH2tqjkjqBHAQzr7gGwDhL1hiDbuRw/2Ii66KD/JXdyfJQ==", + "version": "4.4.11", + "resolved": "https://registry.npmjs.org/@api-components/api-body-document/-/api-body-document-4.4.11.tgz", + "integrity": "sha512-FedP53bEEZZNEA6eRfL/gEqvmtga5nL4/PGJxOG0QNzDf90NF4GJZyWaGQ/MVGGSQgYemwu+xHrGerI3v3IBtw==", "dependencies": { "@advanced-rest-client/arc-icons": "^3.3.4", "@advanced-rest-client/arc-marked": "^1.1.2", @@ -24547,9 +24547,9 @@ } }, "@api-components/api-body-document": { - "version": "4.4.10", - "resolved": "https://registry.npmjs.org/@api-components/api-body-document/-/api-body-document-4.4.10.tgz", - "integrity": "sha512-3v28PmdMKwCCd39tf9hweydAxER7VQLGlgev3CNiLH2tqjkjqBHAQzr7gGwDhL1hiDbuRw/2Ii66KD/JXdyfJQ==", + "version": "4.4.11", + "resolved": "https://registry.npmjs.org/@api-components/api-body-document/-/api-body-document-4.4.11.tgz", + "integrity": "sha512-FedP53bEEZZNEA6eRfL/gEqvmtga5nL4/PGJxOG0QNzDf90NF4GJZyWaGQ/MVGGSQgYemwu+xHrGerI3v3IBtw==", "requires": { "@advanced-rest-client/arc-icons": "^3.3.4", "@advanced-rest-client/arc-marked": "^1.1.2", From 8a8cff9c20e529d3934003fa5a5491029961d7a6 Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Tue, 13 Aug 2024 11:25:12 -0300 Subject: [PATCH 5/7] feat: add avro2 --- .gitignore | 1 + demo/models/avro2.json | 2053 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 2054 insertions(+) create mode 100644 demo/models/avro2.json diff --git a/.gitignore b/.gitignore index 5632caaae..def06f363 100644 --- a/.gitignore +++ b/.gitignore @@ -64,5 +64,6 @@ demo/models/*.json demo/models/flattened/*.json !demo/models/jldAsync26.json !demo/models/avro.json +!demo/models/avro2.json .idea/ diff --git a/demo/models/avro2.json b/demo/models/avro2.json new file mode 100644 index 000000000..e22d54972 --- /dev/null +++ b/demo/models/avro2.json @@ -0,0 +1,2053 @@ +[ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml", + "@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": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api", + "@type": [ + "http://a.ml/vocabularies/apiContract#AsyncAPI", + "http://a.ml/vocabularies/apiContract#API", + "http://a.ml/vocabularies/document#RootDomainElement", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "My API" + } + ], + "http://a.ml/vocabularies/core#version": [ + { + "@value": "1.0.0" + } + ], + "http://a.ml/vocabularies/apiContract#endpoint": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel", + "@type": [ + "http://a.ml/vocabularies/apiContract#EndPoint", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/apiContract#path": [ + { + "@value": "mychannel" + } + ], + "http://a.ml/vocabularies/apiContract#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish", + "@type": [ + "http://a.ml/vocabularies/apiContract#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/apiContract#method": [ + { + "@value": "publish" + } + ], + "http://a.ml/vocabularies/apiContract#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request", + "@type": [ + "http://a.ml/vocabularies/apiContract#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/apiContract#Message", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/apiContract#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default", + "@type": [ + "http://a.ml/vocabularies/apiContract#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/apiContract#schemaMediaType": [ + { + "@value": "application/vnd.apache.avro;version=1.9.0" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes", + "@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#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#boolean" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "boolean" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "boolean-primitive-type" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this is a documentation for the boolean primitive type" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "false" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#boolean" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "boolean" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/boolean-primitive-type/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "boolean" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#int" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "int" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "int-primitive-type" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this is a documentation for the int primitive type" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "123" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "int" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/int-primitive-type/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "int" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#long" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "long" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "long-primitive-type" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this is a documentation for the long primitive type" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "123" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "long" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/long-primitive-type/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "long" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#float" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "float" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "float-primitive-type" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this is a documentation for the float primitive type" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "1.0" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#double" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "float" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/float-primitive-type/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "float" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#double" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "double" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "double-primitive-type" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this is a documentation for the double primitive type" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "1.0" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#double" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "double" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/double-primitive-type/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "double" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#bytes" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "bytes" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "bytes-primitive-type" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this is a documentation for the bytes primitive type" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "\\u00FF" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "bytes" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/bytes-primitive-type/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "bytes" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "string-primitive-type" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this is a documentation for the string primitive type" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "foo" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "string" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/string-primitive-type/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "string" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "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://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/anyOf/nil/null", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "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": "null" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/anyOf/nil/null/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/anyOf/nil/null/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/anyOf/nil/null" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "null" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/anyOf/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/anyOf/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/anyOf/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "LongList" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "union" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this is a documentation for the union type with recursive element" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "null" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#nil" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/union/union" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "union" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "union" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this is a documentation for the union type with recursive element" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "null" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#nil" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "union" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/union/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "union" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "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://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array/default-array/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#long" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array/default-array/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array/default-array/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array/default-array/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "long" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array/default-array/array_1", + "@type": [ + "http://a.ml/vocabularies/data#Array", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/2000/01/rdf-schema#member": [], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "array_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array/default-array/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array/default-array/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array/default-array" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "array" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/array_1", + "@type": [ + "http://a.ml/vocabularies/data#Array", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/2000/01/rdf-schema#member": [], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "array_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "array" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "array" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "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://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "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://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/array/default-array/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/array/default-array/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/array/default-array/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/array/default-array/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "string" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/array/default-array/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/array/default-array/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/array/default-array" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "array" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/array_1", + "@type": [ + "http://a.ml/vocabularies/data#Array", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/2000/01/rdf-schema#member": [], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "array_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array/default-array" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "array" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/array_1", + "@type": [ + "http://a.ml/vocabularies/data#Array", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/2000/01/rdf-schema#member": [], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "array_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "array" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_1/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "array" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Suit" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "SPADES" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://www.w3.org/ns/shacl#in": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit/list", + "@type": "http://www.w3.org/2000/01/rdf-schema#Seq", + "http://www.w3.org/2000/01/rdf-schema#_1": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit/in/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "SPADES" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_2": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit/in/data-node_3", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "HEARTS" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_3": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit/in/data-node_4", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "DIAMONDS" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_4": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit/in/data-node_5", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "CLUBS" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar/Suit" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "enum" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Suit" + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/scalar_1", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "SPADES" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "scalar_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "enum" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/Suit/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "enum" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/md5", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/md5/scalar/md5", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#fixed" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "md5" + } + ], + "http://a.ml/vocabularies/shapes#size": [ + { + "@value": 16 + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/md5/scalar/md5/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/md5/scalar/md5/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/md5/scalar/md5" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "fixed" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "md5" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/md5/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/md5/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/md5" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "fixed" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/md5/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "fixed" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2", + "@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://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/shape/default-node", + "@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#additionalPropertiesSchema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/shape/default-node/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "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#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#long" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/shape/default-node/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/shape/default-node/scalar/default-scalar/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/shape/default-node/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "long" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/shape/default-node/object_1", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "object_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/shape/default-node/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/shape/default-node/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/shape/default-node" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "map" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/object_1", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "object_1" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/source-map/avro-schema/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "map" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/property/property/default-property_2/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#range" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "map" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "AllTypes" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "this schema contains every possible type you can declare in avro inside it's fields" + } + ], + "http://a.ml/vocabularies/shapes#namespace": [ + { + "@value": "root" + } + ], + "http://a.ml/vocabularies/shapes#aliases": [ + { + "@value": "EveryTypeInTheSameSchema" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#avro-schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes/source-map/avro-schema/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/async-api/endpoint/mychannel/supportedOperation/publish/expects/request/payload/default/shape/AllTypes" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "record" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document#root": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/document#processingData": [ + { + "@id": "file://amf-cli/shared/src/test/resources/avro/tck/apis/valid/avro-inline.yaml#/BaseUnitProcessingData", + "@type": [ + "http://a.ml/vocabularies/document#APIContractProcessingData" + ], + "http://a.ml/vocabularies/apiContract#modelVersion": [ + { + "@value": "3.9.0" + } + ], + "http://a.ml/vocabularies/document#sourceSpec": [ + { + "@value": "ASYNC 2.0" + } + ] + } + ] + } +] From 329b2185566704ef757e37c7cbb38b00c88a381e Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Wed, 28 Aug 2024 16:22:21 -0300 Subject: [PATCH 6/7] avro changes --- package-lock.json | 44 +++++++++++++++++++++++++++++++------------- package.json | 2 +- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6941522e1..5ed54e514 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@advanced-rest-client/arc-icons": "^3.2.2", "@advanced-rest-client/oauth-authorization": "^5.0.4", "@anypoint-web-components/anypoint-button": "^1.1.1", - "@api-components/amf-helper-mixin": "^4.5.23", + "@api-components/amf-helper-mixin": "^4.5.28", "@api-components/api-console-ext-comm": "^3.0.0", "@api-components/api-documentation": "^6.1.2", "@api-components/api-navigation": "^4.3.1", @@ -876,9 +876,9 @@ } }, "node_modules/@api-components/amf-helper-mixin": { - "version": "4.5.25", - "resolved": "https://registry.npmjs.org/@api-components/amf-helper-mixin/-/amf-helper-mixin-4.5.25.tgz", - "integrity": "sha512-fudtHuNJkrbWmVMf4sFq45pR6fWGUGLP4l6FwB9CPt7+kGd2iZDGFcT9CpiP4t2b73S8chvrgVtHBXdsDLgbuA==", + "version": "4.5.28", + "resolved": "https://registry.npmjs.org/@api-components/amf-helper-mixin/-/amf-helper-mixin-4.5.28.tgz", + "integrity": "sha512-uDB3B5AJOvr7Ocu7a1DPoghsvA0mAAtYzU8QdRZq4z+eWfkruDisLolgyvmzF3ZHC3VtMYr7ZwvW/wrWKhNOuw==", "dependencies": { "amf-json-ld-lib": "0.0.14" } @@ -1324,10 +1324,18 @@ "lit-html": "^1.4.1" } }, + "node_modules/@api-components/api-summary/node_modules/@api-components/amf-helper-mixin": { + "version": "4.5.25", + "resolved": "https://registry.npmjs.org/@api-components/amf-helper-mixin/-/amf-helper-mixin-4.5.25.tgz", + "integrity": "sha512-fudtHuNJkrbWmVMf4sFq45pR6fWGUGLP4l6FwB9CPt7+kGd2iZDGFcT9CpiP4t2b73S8chvrgVtHBXdsDLgbuA==", + "dependencies": { + "amf-json-ld-lib": "0.0.14" + } + }, "node_modules/@api-components/api-type-document": { - "version": "4.2.29", - "resolved": "https://registry.npmjs.org/@api-components/api-type-document/-/api-type-document-4.2.29.tgz", - "integrity": "sha512-5Z5gSgX5uHWAmHxceht21hAuof+i/zZ9ZgW9jFeRzGKscC7j6HDS218GdSlSC3sZT0xtgKbMleE6voC3EUFFLA==", + "version": "4.2.30", + "resolved": "https://registry.npmjs.org/@api-components/api-type-document/-/api-type-document-4.2.30.tgz", + "integrity": "sha512-xTS/QFUP0Pqp0NjWVO6gGVr2T+zkNj/2o9SYX4XZ8nvvy9Fyb9Vhpl8nbzBKrJWOPZISWSVyFIAYNMtzG4vDpA==", "dependencies": { "@advanced-rest-client/arc-marked": "^1.1.0", "@advanced-rest-client/markdown-styles": "^3.1.4", @@ -24507,9 +24515,9 @@ } }, "@api-components/amf-helper-mixin": { - "version": "4.5.25", - "resolved": "https://registry.npmjs.org/@api-components/amf-helper-mixin/-/amf-helper-mixin-4.5.25.tgz", - "integrity": "sha512-fudtHuNJkrbWmVMf4sFq45pR6fWGUGLP4l6FwB9CPt7+kGd2iZDGFcT9CpiP4t2b73S8chvrgVtHBXdsDLgbuA==", + "version": "4.5.28", + "resolved": "https://registry.npmjs.org/@api-components/amf-helper-mixin/-/amf-helper-mixin-4.5.28.tgz", + "integrity": "sha512-uDB3B5AJOvr7Ocu7a1DPoghsvA0mAAtYzU8QdRZq4z+eWfkruDisLolgyvmzF3ZHC3VtMYr7ZwvW/wrWKhNOuw==", "requires": { "amf-json-ld-lib": "0.0.14" } @@ -24942,12 +24950,22 @@ "dompurify": "^2.3.3", "lit-element": "^2.5.1", "lit-html": "^1.4.1" + }, + "dependencies": { + "@api-components/amf-helper-mixin": { + "version": "4.5.25", + "resolved": "https://registry.npmjs.org/@api-components/amf-helper-mixin/-/amf-helper-mixin-4.5.25.tgz", + "integrity": "sha512-fudtHuNJkrbWmVMf4sFq45pR6fWGUGLP4l6FwB9CPt7+kGd2iZDGFcT9CpiP4t2b73S8chvrgVtHBXdsDLgbuA==", + "requires": { + "amf-json-ld-lib": "0.0.14" + } + } } }, "@api-components/api-type-document": { - "version": "4.2.29", - "resolved": "https://registry.npmjs.org/@api-components/api-type-document/-/api-type-document-4.2.29.tgz", - "integrity": "sha512-5Z5gSgX5uHWAmHxceht21hAuof+i/zZ9ZgW9jFeRzGKscC7j6HDS218GdSlSC3sZT0xtgKbMleE6voC3EUFFLA==", + "version": "4.2.30", + "resolved": "https://registry.npmjs.org/@api-components/api-type-document/-/api-type-document-4.2.30.tgz", + "integrity": "sha512-xTS/QFUP0Pqp0NjWVO6gGVr2T+zkNj/2o9SYX4XZ8nvvy9Fyb9Vhpl8nbzBKrJWOPZISWSVyFIAYNMtzG4vDpA==", "requires": { "@advanced-rest-client/arc-marked": "^1.1.0", "@advanced-rest-client/markdown-styles": "^3.1.4", diff --git a/package.json b/package.json index 8a2dffa14..a29f29041 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@advanced-rest-client/arc-icons": "^3.2.2", "@advanced-rest-client/oauth-authorization": "^5.0.4", "@anypoint-web-components/anypoint-button": "^1.1.1", - "@api-components/amf-helper-mixin": "^4.5.23", + "@api-components/amf-helper-mixin": "^4.5.28", "@api-components/api-console-ext-comm": "^3.0.0", "@api-components/api-documentation": "^6.1.2", "@api-components/api-navigation": "^4.3.1", From b0360f2d0d196db12d2a5ee6db2b129e7d657ad5 Mon Sep 17 00:00:00 2001 From: leandrogilcarrano Date: Wed, 28 Aug 2024 16:22:28 -0300 Subject: [PATCH 7/7] 6.6.43 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5ed54e514..754044138 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "api-console", - "version": "6.6.42", + "version": "6.6.43", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "api-console", - "version": "6.6.42", + "version": "6.6.43", "license": "CPAL-1.0", "dependencies": { "@advanced-rest-client/arc-icons": "^3.2.2", diff --git a/package.json b/package.json index a29f29041..d48f7f070 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "api-console", "description": "The API Console to automatically generate API documentation from RAML and OAS files.", - "version": "6.6.42", + "version": "6.6.43", "license": "CPAL-1.0", "main": "index.js", "module": "index.js",