@asyncapi/specs
Advanced tools
Comparing version 6.0.0-next-major-spec.2 to 6.0.0-next-major-spec.3
@@ -36,3 +36,10 @@ { | ||
"schema": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" | ||
} | ||
] | ||
} | ||
@@ -81,3 +88,10 @@ } | ||
"schema": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" | ||
} | ||
] | ||
} | ||
@@ -104,3 +118,10 @@ } | ||
"schema": { | ||
"$ref": "http://json-schema.org/draft-07/schema" | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://json-schema.org/draft-07/schema" | ||
} | ||
] | ||
} | ||
@@ -128,3 +149,10 @@ } | ||
"schema": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json" | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json" | ||
} | ||
] | ||
} | ||
@@ -152,3 +180,10 @@ } | ||
"schema": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" | ||
} | ||
] | ||
} | ||
@@ -155,0 +190,0 @@ } |
{ | ||
"name": "@asyncapi/specs", | ||
"version": "6.0.0-next-major-spec.2", | ||
"version": "6.0.0-next-major-spec.3", | ||
"description": "AsyncAPI schema versions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,6 +14,6 @@ const path = require('path'); | ||
// definitionsRegex is used to transform the name of a definition into a valid one to be used in the -without-$id.json files. | ||
const definitionsRegex = /http:\/\/asyncapi\.com\/definitions\/[^\/]*\/(.+)\.json\#?(.*)/i | ||
const definitionsRegex = /http:\/\/asyncapi\.com\/definitions\/[^/]*\/(.+)\.json#?(.*)/i | ||
// definitionsRegex is used to transform the name of a binding into a valid one to be used in the -without-$id.json files. | ||
const bindingsRegex = /http:\/\/asyncapi\.com\/(bindings\/[^\/]+)\/([^\/]+)\/(.+)\.json(.*)/i | ||
const bindingsRegex = /http:\/\/asyncapi\.com\/(bindings\/[^/]+)\/([^/]+)\/(.+)\.json(.*)/i | ||
@@ -160,3 +160,3 @@ /** | ||
return path.basename(def, '.json') // TODO is this really needed? | ||
return path.basename(def, '.json') | ||
} | ||
@@ -163,0 +163,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16069114
170362