Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 29 additions & 6 deletions demo/apis.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,31 @@
"models/oAuth2/oAuth2.raml": "RAML 1.0",
"models/nexmo-sms-api/nexmo-sms-api.raml": "RAML 1.0",
"models/google-drive-api/google-drive-api.raml": "RAML 1.0",
"models/httpbin/httpbin.json": ["OAS 2.0", "application/json"],
"models/httpbin/httpbin.json": [
"OAS 2.0",
"application/json"
],
"models/data-type-fragment/data-type-fragment.raml": "RAML 1.0",
"models/SE-12703/SE-12703.yaml": ["OAS 2.0", "application/yaml"],
"models/APIC-319/APIC-319.yaml": ["OAS 2.0", "application/yaml"],
"models/SE-12703/SE-12703.yaml": [
"OAS 2.0",
"application/yaml"
],
"models/APIC-319/APIC-319.yaml": [
"OAS 2.0",
"application/yaml"
],
"models/APIC-262/APIC-262.raml": "RAML 1.0",
"models/console-445/console-445.raml": "RAML 1.0",
"models/apic-80/apic-80.raml": "RAML 1.0",
"models/apic-83/apic-83.raml": "RAML 1.0",
"models/multi-server/multi-server.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
"models/oas-3-api/oas-3-api.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
"models/multi-server/multi-server.yaml": {
"type": "OAS 3.0",
"mime": "application/yaml"
},
"models/oas-3-api/oas-3-api.yaml": {
"type": "OAS 3.0",
"mime": "application/yaml"
},
"models/async-api/async-api.yaml": "ASYNC 2.0",
"models/APIC-553/APIC-553.raml": "RAML 1.0",
"models/APIC-554/APIC-554.raml": "RAML 1.0",
Expand All @@ -39,5 +54,13 @@
"models/APIC-560/APIC-560.yaml": "ASYNC 2.0",
"models/agens-api/agents-api.yaml": "OAS 3.0",
"models/nested-examples/nested-examples-oas3.json": "OAS 3.0",
"models/nullable/nullable.yaml": "OAS 3.0"
"models/nullable/nullable.yaml": "OAS 3.0",
"models/oas31.yaml": {
"type": "OAS 3.1",
"mime": "application/yaml"
},
"models/oas32.yaml": {
"type": "OAS 3.2",
"mime": "application/yaml"
}
}
1 change: 1 addition & 0 deletions demo/models/oas31-compact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"@graph":[{"@id":"amf://id#1","@type":["http://a.ml/vocabularies/document#APIContractProcessingData"],"http://a.ml/vocabularies/apiContract#modelVersion":"3.11.0","http://a.ml/vocabularies/document#transformed":true,"http://a.ml/vocabularies/document#sourceSpec":"OAS 3.1"},{"@id":"amf://id#2","@type":["http://a.ml/vocabularies/apiContract#WebAPI","http://a.ml/vocabularies/apiContract#API","http://a.ml/vocabularies/document#RootDomainElement","http://a.ml/vocabularies/document#DomainElement"],"http://a.ml/vocabularies/core#name":"OAS 3.1 Test API","http://a.ml/vocabularies/core#description":"Minimal OAS 3.1 spec to test JSON Schema 2020-12 keywords","http://a.ml/vocabularies/core#version":"1.0.0","http://a.ml/vocabularies/apiContract#endpoint":[{"@id":"amf://id#3"}]},{"@id":"amf://id#3","@type":["http://a.ml/vocabularies/apiContract#EndPoint","http://a.ml/vocabularies/document#DomainElement"],"http://a.ml/vocabularies/apiContract#path":"/items","http://a.ml/vocabularies/apiContract#supportedOperation":[{"@id":"amf://id#4"}]},{"@id":"amf://id#4","@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":"get","http://a.ml/vocabularies/apiContract#guiSummary":"Get items","http://a.ml/vocabularies/apiContract#returns":[{"@id":"amf://id#5"}]},{"@id":"amf://id#5","@type":["http://a.ml/vocabularies/apiContract#Response","http://a.ml/vocabularies/core#Response","http://a.ml/vocabularies/apiContract#Message","http://a.ml/vocabularies/document#DomainElement"],"http://a.ml/vocabularies/apiContract#statusCode":"200","http://a.ml/vocabularies/core#name":"200","http://a.ml/vocabularies/core#description":"Success","http://a.ml/vocabularies/apiContract#payload":[{"@id":"amf://id#6"}]},{"@id":"amf://id#6","@type":["http://a.ml/vocabularies/apiContract#Payload","http://a.ml/vocabularies/core#Payload","http://a.ml/vocabularies/document#DomainElement"],"http://a.ml/vocabularies/core#mediaType":"application/json","http://a.ml/vocabularies/shapes#schema":{"@id":"amf://id#7"}},{"@id":"amf://id#7","@type":["http://www.w3.org/ns/shacl#NodeShape","http://a.ml/vocabularies/shapes#AnyShape","http://www.w3.org/ns/shacl#Shape","http://a.ml/vocabularies/shapes#Shape","http://a.ml/vocabularies/document#DomainElement"],"http://www.w3.org/ns/shacl#closed":false,"http://www.w3.org/ns/shacl#property":[{"@id":"amf://id#8"}],"http://www.w3.org/ns/shacl#name":"schema","http://a.ml/vocabularies/shapes#schemaVersion":"https://spec.openapis.org/oas/3.1/dialect/base"},{"@id":"amf://id#8","@type":["http://www.w3.org/ns/shacl#PropertyShape","http://www.w3.org/ns/shacl#Shape","http://a.ml/vocabularies/shapes#Shape","http://a.ml/vocabularies/document#DomainElement"],"http://www.w3.org/ns/shacl#path":[{"@id":"http://a.ml/vocabularies/data#items"}],"http://a.ml/vocabularies/shapes#range":{"@id":"amf://id#9"},"http://www.w3.org/ns/shacl#minCount":0,"http://www.w3.org/ns/shacl#name":"items"},{"@id":"amf://id#9","@type":["http://a.ml/vocabularies/shapes#TupleShape","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":"amf://id#9/list"},"http://a.ml/vocabularies/shapes#closedItems":true,"http://www.w3.org/ns/shacl#name":"items","http://a.ml/vocabularies/shapes#schemaVersion":"https://spec.openapis.org/oas/3.1/dialect/base"},{"@id":"amf://id#9/list","@type":"http://www.w3.org/2000/01/rdf-schema#Seq","http://www.w3.org/2000/01/rdf-schema#_1":{"@id":"amf://id#10"},"http://www.w3.org/2000/01/rdf-schema#_2":{"@id":"amf://id#11"}},{"@id":"amf://id#10","@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":"member0","http://a.ml/vocabularies/core#description":"First item is always a string","http://a.ml/vocabularies/shapes#schemaVersion":"https://spec.openapis.org/oas/3.1/dialect/base"},{"@id":"amf://id#11","@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://a.ml/vocabularies/shapes#number"}],"http://www.w3.org/ns/shacl#name":"member1","http://a.ml/vocabularies/core#description":"Second item is always a number","http://a.ml/vocabularies/shapes#schemaVersion":"https://spec.openapis.org/oas/3.1/dialect/base"},{"@id":"amf://id","@type":["http://a.ml/vocabularies/document#Document","http://a.ml/vocabularies/document#Fragment","http://a.ml/vocabularies/document#Module","http://a.ml/vocabularies/document#Unit"],"http://a.ml/vocabularies/document#encodes":{"@id":"amf://id#2"},"http://a.ml/vocabularies/document#root":true,"http://a.ml/vocabularies/document#processingData":{"@id":"amf://id#1"}}]}
Loading