diff --git a/.asyncapi-analytics b/.asyncapi-analytics new file mode 100644 index 00000000000..96bff23646f --- /dev/null +++ b/.asyncapi-analytics @@ -0,0 +1 @@ +{"analyticsEnabled":"true","infoMessageShown":"false","userID":"0e9cf95d-b96e-42ce-9d22-d5118c95dd7c"} \ No newline at end of file diff --git a/index.html b/index.html deleted file mode 100644 index 6f19c116c7f..00000000000 --- a/index.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - Account Service 1.0.0 documentation - - - - - - - -
Account Service 1.0.0

This service is in charge of processing user signups

-

Operations

  • RECEIVE user/signedup

    Operation IDonUserSignUp

    Accepts the following message:

    UserSignedUp
    Message IDUserSignedUp
    object

    Examples

Messages

  • #1UserSignedUp
    Message IDUserSignedUp
    object
- - - - - - \ No newline at end of file diff --git a/src/base.ts b/src/base.ts index 13dfe6a5523..e0d2454d3c4 100644 --- a/src/base.ts +++ b/src/base.ts @@ -116,7 +116,7 @@ export default abstract class extends Command { break; case 'production': // NODE_ENV set to `production` in bin/run_bin, which is specified in 'bin' package.json section - sink = new NewRelicSink(process.env.ASYNCAPI_METRICS_NEWRELIC_KEY || 'eu01xx1dbea6bbf5f6b546cef26c042bFFFFNRAL'); + sink = new NewRelicSink(process.env.ASYNCAPI_METRICS_NEWRELIC_KEY || 'eu01xx73a8521047150dd9414f6aedd2FFFFNRAL'); if (analyticsConfigFileContent.infoMessageShown === 'false') { this.log('\nAsyncAPI anonymously tracks command executions to improve the specification and tools, ensuring no sensitive data reaches our servers. It aids in comprehending how AsyncAPI tools are used and adopted, facilitating ongoing improvements to our specifications and tools.\n\nTo disable tracking, please run the following command:\n asyncapi config analytics --disable\n\nOnce disabled, if you want to enable tracking back again then run:\n asyncapi config analytics --enable'); diff --git a/src/commands/convert.ts b/src/commands/convert.ts index 3e6d4955a6c..2154d173810 100644 --- a/src/commands/convert.ts +++ b/src/commands/convert.ts @@ -34,7 +34,7 @@ export default class Convert extends Command { try { // LOAD FILE - this.specFile = await load(filePath); + this.specFile = await load(this,filePath); this.metricsMetadata.to_version = flags['target-version']; // CONVERSION diff --git a/src/commands/diff.ts b/src/commands/diff.ts index c515fafc26f..50b8140fb13 100644 --- a/src/commands/diff.ts +++ b/src/commands/diff.ts @@ -85,7 +85,7 @@ export default class Diff extends Command { markdownSubtype = setDefaultMarkdownSubtype(outputFormat, markdownSubtype); try { - firstDocument = await load(firstDocumentPath); + firstDocument = await load(this,firstDocumentPath); if (firstDocument.isAsyncAPI3()) { this.error('Diff command does not support AsyncAPI v3 yet which was your first document, please checkout https://github.com/asyncapi/diff/issues/154'); @@ -111,7 +111,7 @@ export default class Diff extends Command { } try { - secondDocument = await load(secondDocumentPath); + secondDocument = await load(this,secondDocumentPath); if (secondDocument.isAsyncAPI3()) { this.error('Diff command does not support AsyncAPI v3 yet which was your second document, please checkout https://github.com/asyncapi/diff/issues/154'); diff --git a/src/commands/generate/fromTemplate.ts b/src/commands/generate/fromTemplate.ts index 3aec3bc06cb..a783d4c459b 100644 --- a/src/commands/generate/fromTemplate.ts +++ b/src/commands/generate/fromTemplate.ts @@ -125,8 +125,8 @@ export default class Template extends Command { mapBaseUrlToFolder: parsedFlags.mapBaseUrlToFolder, disabledHooks: parsedFlags.disableHooks, }; - const asyncapiInput = (await load(this,asyncapi)) || (await load(this)); + this.specFile = asyncapiInput; this.metricsMetadata.template = template; diff --git a/src/commands/generate/models.ts b/src/commands/generate/models.ts index 556e7d9af7b..8b0783d8156 100644 --- a/src/commands/generate/models.ts +++ b/src/commands/generate/models.ts @@ -170,7 +170,7 @@ export default class Models extends Command { const { args, flags } = await this.parse(Models); const { tsModelType, tsEnumType, tsIncludeComments, tsModuleSystem, tsExportType, tsJsonBinPack, tsMarshalling, tsExampleInstance, namespace, csharpAutoImplement, csharpArrayType, csharpNewtonsoft, csharpHashcode, csharpEqual, csharpSystemJson, packageName, javaIncludeComments, javaJackson, javaConstraints, output } = flags; const { language, file } = args; - const inputFile = (await load(file)) || (await load()); + const inputFile = (await load(this,file)) || (await load(this)); if (inputFile.isAsyncAPI3()) { this.error('Generate Models command does not support AsyncAPI v3 yet, please checkout https://github.com/asyncapi/modelina/issues/1376'); } diff --git a/src/commands/new/glee.ts b/src/commands/new/glee.ts index 9d91fa297ad..c84ae4e0708 100644 --- a/src/commands/new/glee.ts +++ b/src/commands/new/glee.ts @@ -113,7 +113,7 @@ export default class NewGlee extends Command { try { console.log(file); - const asyncapiInput = (await load(file)) || (await load()); + const asyncapiInput = (await load(this,file)) || (await load(this)); console.log(asyncapiInput); const serversObject = asyncapiInput.toJson()?.servers; diff --git a/src/commands/optimize.ts b/src/commands/optimize.ts index ed834e895ee..ef635c0bfe5 100644 --- a/src/commands/optimize.ts +++ b/src/commands/optimize.ts @@ -53,7 +53,7 @@ export default class Optimize extends Command { const filePath = args['spec-file']; try { - this.specFile = await load(filePath); + this.specFile = await load(this,filePath); } catch (err) { this.error( new ValidationError({ diff --git a/src/commands/start/studio.ts b/src/commands/start/studio.ts index 99f0be807ac..b1a067228e0 100644 --- a/src/commands/start/studio.ts +++ b/src/commands/start/studio.ts @@ -16,7 +16,7 @@ export default class StartStudio extends Command { async run() { const { flags } = await this.parse(StartStudio); - const filePath = flags.file || (await load()).getFilePath(); + const filePath = flags.file || (await load(this)).getFilePath(); const port = flags.port; startStudio(filePath as string, port); diff --git a/src/commands/validate.ts b/src/commands/validate.ts index d0eb1c211ad..eceec7d2480 100644 --- a/src/commands/validate.ts +++ b/src/commands/validate.ts @@ -23,7 +23,7 @@ export default class Validate extends Command { const filePath = args['spec-file']; const watchMode = flags.watch; - this.specFile = await load(filePath); + this.specFile = await load(this,filePath); if (watchMode) { specWatcher({ spec: this.specFile, handler: this, handlerName: 'validate' }); }