Skip to content

Commit

Permalink
also replace / with - for
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya committed Jul 11, 2023
1 parent b2b00e8 commit 55dfa57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bundler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function getDefinitionName(def) {
if (def.startsWith('http://json-schema.org')) return JSON_SCHEMA_PROP_NAME;
if (def.startsWith('http://asyncapi.com/definitions')) {
const result = definitionsRegex.exec(def);
if (result) return result[1] + result[2];
if (result) return result[1].replace('/', '-') + result[2];
}
if (def.startsWith('http://asyncapi.com/bindings')) {
const result = bindingsRegex.exec(def);
Expand Down

0 comments on commit 55dfa57

Please sign in to comment.