SYMBOL INDEX (478 symbols across 99 files) FILE: .github/workflows/scripts/kit/htmlContent.js function escapeHtml (line 11) | function escapeHtml(text) { FILE: .github/workflows/scripts/mailchimp/htmlContent.js function escapeHtml (line 9) | function escapeHtml(text) { FILE: github-action/lib/bump-action-version.js function bumpActionVersion (line 4) | function bumpActionVersion() { FILE: scripts/enableAutoComplete.js function findExistingFile (line 10) | function findExistingFile(possibleFiles) { function getShellConfig (line 60) | function getShellConfig(shell) { function detectShell (line 67) | function detectShell() { function checkPotentialPath (line 77) | function checkPotentialPath(potentialPath) { function findCliExecutable (line 94) | function findCliExecutable() { function generateAutocompleteScript (line 117) | function generateAutocompleteScript(shell) { function setupAutocomplete (line 135) | function setupAutocomplete(shell) { FILE: scripts/fetch-asyncapi-example.js constant SPEC_EXAMPLES_ZIP_URL (line 24) | const SPEC_EXAMPLES_ZIP_URL = 'https://github.com/asyncapi/spec/archive/... constant EXAMPLE_DIRECTORY (line 25) | const EXAMPLE_DIRECTORY = path.join(__dirname, '../assets/examples'); constant TEMP_ZIP_NAME (line 26) | const TEMP_ZIP_NAME = 'spec-examples.zip'; FILE: scripts/generateTypesForGenerateCommand.js function generateClientLanguages (line 5) | async function generateClientLanguages() { function capitalize (line 34) | function capitalize(str) { FILE: scripts/releasePackagesRename.js function fileExists (line 9) | async function fileExists(checkPath) { function checkAndRenameFile (line 18) | async function checkAndRenameFile(generatedPath, newPath) { function createDirectory (line 24) | async function createDirectory(directoryPath) { function renameDeb (line 31) | async function renameDeb({version, name, sha}) { function renameTar (line 40) | async function renameTar({version, name, sha, isAlpine}) { function renameWindows (line 54) | async function renameWindows({version, name, sha, arch}) { function renamePkg (line 62) | async function renamePkg({version, name, sha, arch}) { function renamePackages (line 70) | async function renamePackages() { FILE: scripts/updateUsageDocs.js constant README_PATH (line 5) | const README_PATH = './scripts/README.md'; constant USAGE_PATH (line 6) | const USAGE_PATH = './docs/usage.md'; function run (line 32) | async function run() { function readContents (line 45) | async function readContents() { function delay (line 71) | function delay(ms) { FILE: src/apps/api/app.ts class App (line 17) | class App { method constructor (line 20) | constructor( method init (line 28) | public async init() { method listen (line 37) | public listen() { method getServer (line 48) | public getServer() { method initializeMiddlewares (line 52) | private async initializeMiddlewares() { method initializeControllers (line 96) | private async initializeControllers() { method initializeErrorHandling (line 102) | private async initializeErrorHandling() { FILE: src/apps/api/constants.ts constant API_VERSION (line 1) | const API_VERSION = 'v1'; FILE: src/apps/api/controllers/bundle.controller.ts class BundleController (line 9) | class BundleController implements Controller { method bundle (line 12) | private async bundle(req: Request, res: Response, next: NextFunction) { method boot (line 32) | public async boot(): Promise { FILE: src/apps/api/controllers/convert.controller.ts type ConvertDTO (line 8) | interface ConvertDTO extends ConversionOptions { class ConvertController (line 15) | class ConvertController implements Controller { method convert (line 19) | private async convert(req: Request, res: Response, next: NextFunction) { method boot (line 63) | public async boot(): Promise { FILE: src/apps/api/controllers/diff.controller.ts class DiffController (line 9) | class DiffController implements Controller { method diff (line 12) | private async diff(req: Request, res: Response, next: NextFunction) { method boot (line 30) | public async boot(): Promise { FILE: src/apps/api/controllers/docs.controller.ts class DocsController (line 8) | class DocsController implements Controller { method boot (line 11) | public boot(): Router { FILE: src/apps/api/controllers/generate.controller.ts class GenerateController (line 19) | class GenerateController implements Controller { method generate (line 26) | private async generate(req: Request, res: Response, next: NextFunction) { method validateTemplateParameters (line 102) | private async validateTemplateParameters(req: Request) { method getAjvValidator (line 132) | public async getAjvValidator(templateName: string) { method serializeTemplateParameters (line 151) | public async serializeTemplateParameters( method boot (line 193) | public async boot(): Promise { FILE: src/apps/api/controllers/help.controller.ts class HelpController (line 65) | class HelpController implements Controller { method boot (line 68) | public async boot(): Promise { FILE: src/apps/api/controllers/parse.controller.ts class ParseController (line 8) | class ParseController implements Controller { method parse (line 11) | private async parse(req: Request, res: Response) { method boot (line 18) | public async boot(): Promise { FILE: src/apps/api/controllers/validate.controller.ts class ValidateController (line 10) | class ValidateController implements Controller { method validate (line 13) | private async validate(req: Request, res: Response) { method boot (line 35) | public async boot(): Promise { FILE: src/apps/api/controllers/version.controller.ts class VersionController (line 7) | class VersionController implements Controller { method getPackageInfo (line 11) | private async getPackageInfo() { method boot (line 20) | public async boot(): Promise { FILE: src/apps/api/exceptions/problem.exception.ts type ProblemExceptionProps (line 3) | interface ProblemExceptionProps { class ProblemException (line 10) | class ProblemException extends ProblemMixin({ FILE: src/apps/api/index.ts constant CONTROLLERS (line 11) | const CONTROLLERS = [ FILE: src/apps/api/middlewares/logger.middleware.ts function loggerMiddleware (line 4) | function loggerMiddleware(req: Request, res: Response, next: NextFunctio... FILE: src/apps/api/middlewares/problem.middleware.ts function problemMiddleware (line 9) | function problemMiddleware( FILE: src/apps/api/middlewares/validation.middleware.ts type ValidationMiddlewareOptions (line 14) | interface ValidationMiddlewareOptions { function compileAjv (line 35) | async function compileAjv(options: ValidationMiddlewareOptions) { function validateRequestBody (line 85) | async function validateRequestBody(validate: ValidateFunction, body: any) { function validateSingleDocument (line 99) | async function validateSingleDocument( function validateListDocuments (line 129) | async function validateListDocuments( function validationMiddleware (line 158) | async function validationMiddleware( constant TYPES_400 (line 262) | const TYPES_400 = [ function retrieveStatusCode (line 273) | function retrieveStatusCode(type: string): number { function mergeParserError (line 283) | function mergeParserError( function tryConvertToProblemException (line 306) | function tryConvertToProblemException(err: any) { FILE: src/apps/api/server-api.d.ts type Request (line 4) | interface Request { FILE: src/apps/api/server.ts function main (line 12) | async function main() { FILE: src/apps/cli/commands/bundle.ts class Bundle (line 11) | class Bundle extends Command { method run (line 27) | async run() { method collectMetricsData (line 75) | private async collectMetricsData(document: Document) { FILE: src/apps/cli/commands/config/analytics.ts class Analytics (line 10) | class Analytics extends Command { method run (line 15) | async run() { FILE: src/apps/cli/commands/config/auth/add.ts class AuthAdd (line 6) | class AuthAdd extends Command { method run (line 36) | async run() { FILE: src/apps/cli/commands/config/context/add.ts class ContextAdd (line 11) | class ContextAdd extends Command { method run (line 26) | async run() { FILE: src/apps/cli/commands/config/context/current.ts class ContextCurrent (line 12) | class ContextCurrent extends Command { method run (line 16) | async run() { FILE: src/apps/cli/commands/config/context/edit.ts class ContextEdit (line 12) | class ContextEdit extends Command { method run (line 26) | async run() { FILE: src/apps/cli/commands/config/context/index.ts class Context (line 4) | class Context extends Command { method run (line 8) | async run() { FILE: src/apps/cli/commands/config/context/init.ts class ContextInit (line 6) | class ContextInit extends Command { method run (line 22) | async run() { FILE: src/apps/cli/commands/config/context/list.ts class ContextList (line 14) | class ContextList extends Command { method run (line 18) | async run() { FILE: src/apps/cli/commands/config/context/remove.ts class ContextRemove (line 12) | class ContextRemove extends Command { method run (line 23) | async run() { FILE: src/apps/cli/commands/config/context/use.ts class ContextUse (line 12) | class ContextUse extends Command { method run (line 23) | async run() { FILE: src/apps/cli/commands/config/index.ts class Config (line 4) | class Config extends Command { method run (line 6) | async run() { FILE: src/apps/cli/commands/config/versions.ts class Versions (line 5) | class Versions extends Command { method run (line 10) | async run() { FILE: src/apps/cli/commands/convert.ts constant TARGET_VERSION_FLAG (line 15) | const TARGET_VERSION_FLAG = 'target-version'; class Convert (line 17) | class Convert extends Command { method run (line 33) | async run() { method handleError (line 82) | private handleError(err: unknown, filePath: string, targetVersion: str... FILE: src/apps/cli/commands/diff.ts class Diff (line 28) | class Diff extends Command { method run (line 45) | async run() { method outputJSON (line 177) | outputJSON(diffOutput: AsyncAPIDiff, outputType: string) { method writeOutputToFile (line 191) | async writeOutputToFile(diffOutput: AsyncAPIDiff, outputType: string, ... method outputYAML (line 222) | outputYAML(diffOutput: AsyncAPIDiff, outputType: string) { method outputMarkdown (line 226) | outputMarkdown(diffOutput: AsyncAPIDiff, outputType: string) { method parseDocuments (line 230) | async parseDocuments( method handleGovernanceMessage (line 317) | async handleGovernanceMessage( function genericOutput (line 346) | function genericOutput(diffOutput: AsyncAPIDiff, outputType: string) { function readOverrideFile (line 366) | async function readOverrideFile(path: string): Promise, output?: string): P... method getTemplateName (line 115) | private getTemplateName(language: AvailableLanguageType): string { FILE: src/apps/cli/commands/generate/fromTemplate.ts class Template (line 12) | class Template extends BaseGeneratorCommand { method run (line 29) | async run() { method parseArgs (line 106) | private async parseArgs( FILE: src/apps/cli/commands/generate/index.ts class Generate (line 4) | class Generate extends Command { method run (line 7) | async run() { FILE: src/apps/cli/commands/generate/models.ts class Models (line 20) | class Models extends Command { method run (line 30) | async run() { method parseArgs (line 146) | private async parseArgs(args: Record, output?: string) { method handleGovernanceMessage (line 199) | async handleGovernanceMessage( FILE: src/apps/cli/commands/new/file.ts constant DEFAULT_ASYNCAPI_FILE_NAME (line 11) | const DEFAULT_ASYNCAPI_FILE_NAME = 'asyncapi.yaml'; constant DEFAULT_ASYNCAPI_YAML_TEMPLATE (line 12) | const DEFAULT_ASYNCAPI_YAML_TEMPLATE = 'default-example.yaml'; constant DEFAULT_ASYNCAPI_JSON_TEMPLATE (line 13) | const DEFAULT_ASYNCAPI_JSON_TEMPLATE = 'default-example.json'; type IExample (line 15) | interface IExample { function loadExampleFile (line 20) | function loadExampleFile(): IExample[] { function getExamplesFlagDescription (line 28) | function getExamplesFlagDescription(): string { class NewFile (line 37) | class NewFile extends Command { method run (line 47) | async run() { method runInteractive (line 79) | async runInteractive() { method createAsyncapiFile (line 167) | async createAsyncapiFile(fileName: string, selectedTemplate: string) { FILE: src/apps/cli/commands/new/index.ts class New (line 4) | class New extends Command { method run (line 7) | async run() { FILE: src/apps/cli/commands/new/template.ts class template (line 30) | class template extends Command { method run (line 37) | async run() { function copyAndModify (line 89) | async function copyAndModify( FILE: src/apps/cli/commands/optimize.ts type Optimizations (line 16) | enum Optimizations { type DisableOptimizations (line 23) | enum DisableOptimizations { type Outputs (line 27) | enum Outputs { class Optimize (line 32) | class Optimize extends Command { method run (line 61) | async run() { method showOptimizations (line 196) | private showOptimizations(elements: ReportElement[] | undefined) { method interactiveRun (line 219) | private async interactiveRun(report: Report) { method collectMetricsData (line 328) | private collectMetricsData(report: Report) { FILE: src/apps/cli/commands/pretty.ts class Pretty (line 9) | class Pretty extends Command { method run (line 27) | async run() { FILE: src/apps/cli/commands/start/api.ts class Api (line 8) | class Api extends Command { method run (line 15) | async run() { FILE: src/apps/cli/commands/start/index.ts class Start (line 4) | class Start extends Command { method run (line 7) | async run() { FILE: src/apps/cli/commands/start/preview.ts class PreviewStudio (line 7) | class PreviewStudio extends Command { method run (line 21) | async run() { FILE: src/apps/cli/commands/start/studio.ts class StartStudio (line 8) | class StartStudio extends Command { method run (line 20) | async run() { method parseArgs (line 61) | private async parseArgs(args: Record, port?: string) { FILE: src/apps/cli/commands/validate.ts class Validate (line 18) | class Validate extends Command { method run (line 34) | async run() { method handleDiagnostics (line 84) | private async handleDiagnostics( FILE: src/apps/cli/internal/base.ts class DiscardSink (line 20) | class DiscardSink implements Sink { method send (line 21) | async send() { method init (line 32) | async init(): Promise { method catch (line 38) | async catch(err: Error & { exitCode?: number }): Promise { method recordActionFinished (line 53) | async recordActionFinished( method recordActionInvoked (line 81) | async recordActionInvoked(action: string, metadata?: MetricMetadata) { method recordActionMetric (line 89) | async recordActionMetric(recordFunc: (recorder: Recorder) => Promise { method recorderFromEnv (line 125) | async recorderFromEnv(prefix: string): Promise { FILE: src/apps/cli/internal/base/BaseGeneratorCommand.ts type GeneratorOptions (line 20) | interface GeneratorOptions { method buildGeneratorOptions (line 47) | protected async buildGeneratorOptions(flags: any, parsedFlags: ParsedFla... method applyProxyConfiguration (line 64) | protected applyProxyConfiguration(asyncapi: string, proxyHost?: string, ... method handleWatchMode (line 68) | protected async handleWatchMode( method buildGenOption (line 80) | protected buildGenOption(flags: any, parsedFlags: ParsedFlags): any { method generate (line 88) | protected async generate( method parseCommonArgs (line 112) | protected async parseCommonArgs( method loadAsyncAPIInput (line 138) | protected async loadAsyncAPIInput(asyncapi: string) { method handleCancellation (line 142) | protected handleCancellation(value: any): void { method loadSpecificationSafely (line 148) | protected async loadSpecificationSafely(asyncapi: string | undefined): P... FILE: src/apps/cli/internal/flags/format.flags.ts type fileFormat (line 3) | type fileFormat = 'yaml' | 'yml' | 'json'; FILE: src/apps/cli/internal/flags/optimize.flags.ts type Optimizations (line 3) | enum Optimizations { type DisableOptimizations (line 10) | enum DisableOptimizations { type Outputs (line 14) | enum Outputs { FILE: src/apps/cli/internal/flags/parser.flags.ts type ValidationFlagsOptions (line 4) | interface ValidationFlagsOptions { function parserFlags (line 8) | function parserFlags({ FILE: src/apps/cli/internal/globals.ts constant CHOKIDAR_CONFIG (line 9) | const CHOKIDAR_CONFIG = { constant WATCH_MESSAGES (line 12) | const WATCH_MESSAGES = { constant CHOKIDAR_INSTANCE_STORE (line 26) | const CHOKIDAR_INSTANCE_STORE = new Map(); type SpecWatcherParams (line 28) | type SpecWatcherParams = { FILE: src/domains/models/Context.ts constant REPO_ROOT_PATH (line 27) | let REPO_ROOT_PATH = process.cwd(); constant DEFAULT_CONTEXT_FILENAME (line 30) | const DEFAULT_CONTEXT_FILENAME = '.asyncapi-cli'; constant DEFAULT_CONTEXT_FILE_LOCATION (line 31) | const DEFAULT_CONTEXT_FILE_LOCATION = os.homedir(); constant DEFAULT_CONTEXT_FILE_PATH (line 32) | const DEFAULT_CONTEXT_FILE_PATH = path.resolve( constant CONTEXT_FILENAME (line 37) | const CONTEXT_FILENAME = constant CONTEXT_FILE_LOCATION (line 39) | const CONTEXT_FILE_LOCATION = constant CONTEXT_FILE_PATH (line 61) | let CONTEXT_FILE_PATH = type IContextFile (line 72) | interface IContextFile { type ICurrentContext (line 79) | interface ICurrentContext { function initContext (line 84) | async function initContext(contextFilePath: string) { function loadContext (line 124) | async function loadContext(contextName?: string): Promise { function addContext (line 142) | async function addContext(contextName: string, pathToFile: string) { function removeContext (line 156) | async function removeContext(contextName: string) { function getCurrentContext (line 173) | async function getCurrentContext(): Promise { function setCurrentContext (line 188) | async function setCurrentContext(contextName: string) { function editContext (line 203) | async function editContext(contextName: string, pathToFile: string) { function loadContextFile (line 218) | async function loadContextFile(): Promise { function saveContextFile (line 249) | async function saveContextFile(fileContent: IContextFile) { function getRepoRootPath (line 264) | async function getRepoRootPath(repoRootPath: string): Promise { function isContextFileValid (line 351) | async function isContextFileValid(fileContent: IContextFile): Promise any; function resolveStudioNextInstance (line 29) | function resolveStudioNextInstance(studioPath: string): NextFactory { function startPreview (line 35) | function startPreview(filePath:string,base:string | undefined,baseDirect... function sendQueuedMessages (line 202) | function sendQueuedMessages() { function isLocalRefAPath (line 211) | function isLocalRefAPath(key: string, value: any): boolean { function findPathsToWatchFromSchemaRef (line 217) | function findPathsToWatchFromSchemaRef(filePath: string,baseDir:string) { FILE: src/domains/models/SpecificationFile.ts constant TYPE_CONTEXT_NAME (line 18) | const TYPE_CONTEXT_NAME = 'context-name'; constant TYPE_FILE_PATH (line 19) | const TYPE_FILE_PATH = 'file-path'; constant TYPE_URL (line 20) | const TYPE_URL = 'url-path'; class Specification (line 22) | class Specification { method constructor (line 28) | constructor( method isAsyncAPI3 (line 42) | isAsyncAPI3() { method toJson (line 47) | toJson(): Record { method text (line 55) | text() { method getFilePath (line 59) | getFilePath() { method getFileURL (line 63) | getFileURL() { method getKind (line 67) | getKind() { method getSource (line 71) | getSource() { method toSourceString (line 75) | toSourceString() { method fromFile (line 82) | static async fromFile(filepath: string) { method fromURL (line 92) | static async fromURL(URLpath: string) { class SpecificationFile (line 139) | class SpecificationFile { method constructor (line 142) | constructor(filePath: string) { method getPath (line 146) | getPath(): string { method read (line 150) | async read(): Promise { type LoadType (line 155) | interface LoadType { function load (line 162) | async function load( function nameType (line 207) | async function nameType(name: string): Promise { function isURL (line 225) | async function isURL(urlpath: string): Promise { function fileExists (line 234) | async function fileExists(name: string): Promise { function loadFromContext (line 254) | async function loadFromContext(contextName?: string): Promise { function retrieveFileFormat (line 280) | function retrieveFileFormat(content: string): fileFormat | undefined { function convertToYaml (line 301) | function convertToYaml(spec: string): string | undefined { function convertToJSON (line 318) | function convertToJSON(spec: string): string | undefined { FILE: src/domains/models/Studio.ts constant DEFAULT_PORT (line 16) | const DEFAULT_PORT = 0; function isValidFilePath (line 18) | function isValidFilePath(filePath: string): boolean { type NextFactory (line 22) | type NextFactory = (config?: any) => any; function resolveStudioNextInstance (line 25) | function resolveStudioNextInstance(studioPath: string): NextFactory { function start (line 31) | function start(filePath: string, port: number = DEFAULT_PORT, noBrowser?... function sendQueuedMessages (line 187) | function sendQueuedMessages() { function getFileContent (line 196) | function getFileContent(filePath: string): Promise { function saveFileContent (line 206) | function saveFileContent(filePath: string, fileContent: string): void { FILE: src/domains/models/generate/Flags.ts type IMapBaseUrlToFlag (line 1) | interface IMapBaseUrlToFlag { type ParsedFlags (line 6) | interface ParsedFlags { FILE: src/domains/services/archiver.service.ts class ArchiverService (line 14) | class ArchiverService { method createZip (line 15) | public createZip(res?: Response) { method appendDirectory (line 24) | public appendDirectory(archive: Archiver, from: string, to: string) { method appendAsyncAPIDocument (line 28) | public appendAsyncAPIDocument( method finalize (line 42) | public async finalize(archive: Archiver) { method createTempDirectory (line 50) | public createTempDirectory() { method removeTempDirectory (line 54) | public removeTempDirectory(tmpDir: string) { FILE: src/domains/services/base.service.ts method createSuccessResult (line 15) | protected createSuccessResult(data: T): ServiceResult { method createErrorResult (line 29) | protected createErrorResult( method handleServiceError (line 46) | protected async handleServiceError(error: unknown): Promise { method saveConfig (line 44) | static async saveConfig(config: Config): Promise { method addAuthEntry (line 52) | static async addAuthEntry(entry: AuthEntry): Promise { method getAuthForUrl (line 68) | static async getAuthForUrl(url: string): Promise { method wildcardToRegex (line 98) | private static wildcardToRegex(pattern: string): RegExp { FILE: src/domains/services/convert.service.ts class ConversionService (line 16) | class ConversionService extends BaseService { method convertDocument (line 20) | async convertDocument( method handleLogging (line 53) | handleLogging(specFile: Specification, flags: ConversionOptions): stri... method formatConvertedFile (line 71) | private formatConvertedFile(convertedFile: string | object): string { method handleOutput (line 83) | async handleOutput(outputPath: string, convertedFileFormatted: string)... FILE: src/domains/services/generator.service.ts type GeneratorRunOptions (line 21) | interface GeneratorRunOptions { class GeneratorService (line 26) | class GeneratorService extends BaseService { method constructor (line 29) | constructor(interactive = false) { method verifyTemplateSupportForV3 (line 57) | private verifyTemplateSupportForV3(template: string) { method getGenerationSuccessMessage (line 64) | private getGenerationSuccessMessage(output: string): string { method checkV3NotSupported (line 68) | private checkV3NotSupported(asyncapi: Specification, template: string) { method getGeneratorParseSource (line 80) | private getGeneratorParseSource(spec: Specification): string | undefin... method generate (line 102) | async generate( FILE: src/domains/services/validation.service.ts type GitHubFileInfo (line 38) | interface GitHubFileInfo { type ValidationStatus (line 177) | enum ValidationStatus { class ValidationService (line 202) | class ValidationService extends BaseService { method constructor (line 205) | constructor(parserOptions: ParserOptions = {}) { method determineDiagnosticsStatus (line 234) | private determineDiagnosticsStatus( method parseDocument (line 249) | async parseDocument( method validateDocument (line 284) | async validateDocument( method buildCustomParser (line 328) | private buildCustomParser(rulesToSuppress: string[]): Parser { method registerSchemaParsers (line 348) | private registerSchemaParsers(parser: Parser): void { method buildParserWithAllWarningsSuppressed (line 358) | private async buildParserWithAllWarningsSuppressed( method buildParserWithSpecificWarningsSuppressed (line 377) | private buildParserWithSpecificWarningsSuppressed( method buildAndRegisterCustomParser (line 401) | private async buildAndRegisterCustomParser( method saveDiagnosticsToFile (line 421) | async saveDiagnosticsToFile( method generateGovernanceMessage (line 457) | generateGovernanceMessage( method hasFailSeverity (line 474) | private hasFailSeverity( method formatDiagnosticsOutput (line 487) | formatDiagnosticsOutput( method formatStylish (line 523) | private formatStylish( method getSeverityTitle (line 549) | private getSeverityTitle(severity: DiagnosticSeverity): string { FILE: src/errors/context-error.ts constant NO_CONTEXTS_SAVED (line 1) | const NO_CONTEXTS_SAVED = `These are your options to specify in the CLI ... constant MISSING_CURRENT_CONTEXT (line 8) | const MISSING_CURRENT_CONTEXT = class ContextError (line 21) | class ContextError extends Error { method constructor (line 22) | constructor() { class MissingContextFileError (line 28) | class MissingContextFileError extends ContextError { method constructor (line 29) | constructor() { class MissingCurrentContextError (line 35) | class MissingCurrentContextError extends ContextError { method constructor (line 36) | constructor() { class ContextNotFoundError (line 42) | class ContextNotFoundError extends ContextError { method constructor (line 43) | constructor(contextName: string) { class ContextAlreadyExistsError (line 49) | class ContextAlreadyExistsError extends ContextError { method constructor (line 50) | constructor(contextName: string, contextFileName: string) { class ContextFileWrongFormatError (line 56) | class ContextFileWrongFormatError extends ContextError { method constructor (line 57) | constructor(contextFileName: string) { class ContextFileEmptyError (line 63) | class ContextFileEmptyError extends ContextError { method constructor (line 64) | constructor(contextFileName: string) { class ContextFileWriteError (line 70) | class ContextFileWriteError extends ContextError { method constructor (line 71) | constructor(contextFileName: string) { FILE: src/errors/diff-error.ts class DiffOverrideFileError (line 1) | class DiffOverrideFileError extends Error { method constructor (line 2) | constructor() { class DiffOverrideJSONError (line 9) | class DiffOverrideJSONError extends Error { method constructor (line 10) | constructor() { class DiffBreakingChangeError (line 17) | class DiffBreakingChangeError extends Error { method constructor (line 18) | constructor() { FILE: src/errors/generator-error.ts class GeneratorError (line 1) | class GeneratorError extends Error { method constructor (line 2) | constructor(err: Error) { FILE: src/errors/specification-file.ts class SpecificationFileError (line 2) | class SpecificationFileError extends Error { method constructor (line 3) | constructor() { class SpecificationFileNotFound (line 9) | class SpecificationFileNotFound extends SpecificationFileError { method constructor (line 10) | constructor(filePath?: string) { class SpecificationWrongFileFormat (line 20) | class SpecificationWrongFileFormat extends SpecificationFileError { method constructor (line 21) | constructor(filePath?: string) { class SpecificationURLNotFound (line 27) | class SpecificationURLNotFound extends SpecificationFileError { method constructor (line 28) | constructor(URL: string) { type From (line 34) | type From = 'file' | 'url' | 'context' | 'invalid file'; class ErrorLoadingSpec (line 36) | class ErrorLoadingSpec extends Error { method constructor (line 40) | constructor(from?: From, param?: string) { FILE: src/errors/validation-error.ts type ErrorType (line 1) | type ErrorType = type IValidationErrorInput (line 7) | interface IValidationErrorInput { class ValidationError (line 13) | class ValidationError extends Error { method constructor (line 14) | constructor(error: IValidationErrorInput) { method buildError (line 32) | private buildError(err: any) { FILE: src/interfaces/index.ts type DiagnosticsFormat (line 7) | type DiagnosticsFormat = type SeverityKind (line 19) | type SeverityKind = 'error' | 'warn' | 'info' | 'hint'; type Adapter (line 24) | type Adapter = 'cli' | 'api'; type Controller (line 33) | interface Controller { type Problem (line 41) | interface Problem { type AsyncAPIDocument (line 50) | type AsyncAPIDocument = { asyncapi: string } & Record; constant ALL_SPECS (line 52) | const ALL_SPECS = [...Object.keys(specs)]; constant LAST_SPEC_VERSION (line 53) | const LAST_SPEC_VERSION = ALL_SPECS[ALL_SPECS.length - 1]; type SpecsEnum (line 55) | type SpecsEnum = keyof typeof specs | 'latest'; type AsyncAPIServiceOptions (line 57) | interface AsyncAPIServiceOptions { type ServiceResult (line 67) | interface ServiceResult { type ParsedDocument (line 77) | interface ParsedDocument { type ValidationOptions (line 86) | interface ValidationOptions { type ValidationResult (line 98) | interface ValidationResult { type ConversionOptions (line 105) | interface ConversionOptions { type ConversionResult (line 111) | interface ConversionResult { type IMapBaseUrlToFlag (line 119) | interface IMapBaseUrlToFlag { type RegistryConfig (line 127) | interface RegistryConfig { type GenerationOptions (line 136) | interface GenerationOptions { type GenerationResult (line 150) | interface GenerationResult { FILE: src/utils/ajv.ts function createAjvInstance (line 6) | function createAjvInstance(): AjvCore { FILE: src/utils/app-openapi.ts function getAppOpenAPI (line 12) | async function getAppOpenAPI(): Promise { FILE: src/utils/error-handler.ts function getErrorMessage (line 22) | function getErrorMessage(error: unknown, fallbackMessage = 'An unknown e... function getErrorStack (line 41) | function getErrorStack(error: unknown): string | undefined { function isError (line 54) | function isError(value: unknown): value is Error { function hasErrorCode (line 75) | function hasErrorCode(error: unknown, code: string): boolean { function withErrorHandling (line 98) | function withErrorHandling( type ErrorResult (line 116) | interface ErrorResult { type SuccessResult (line 123) | interface SuccessResult { type Result (line 128) | type Result = SuccessResult | ErrorResult; function success (line 133) | function success(data: T): SuccessResult { function failure (line 140) | function failure(error: string, code?: string, details?: Record { function promptForLanguage (line 27) | async function promptForLanguage(defaultLanguage: string): Promise { function promptForOutputDir (line 55) | async function promptForOutputDir(): Promise { FILE: src/utils/generate/registry.ts constant REGISTRY_REACHABILITY_TIMEOUT_MS (line 5) | const REGISTRY_REACHABILITY_TIMEOUT_MS = 15_000; function registryReachabilityTimeoutMs (line 7) | function registryReachabilityTimeoutMs(): number { function registryURLParser (line 18) | function registryURLParser(input?: string) { function isAbortError (line 26) | function isAbortError(err: unknown): boolean { function fetchWithTimeout (line 37) | async function fetchWithTimeout( function registryValidation (line 51) | async function registryValidation(registryUrl?: string, registryAuth?: s... FILE: src/utils/generate/watcher.ts function isLocalTemplate (line 11) | async function isLocalTemplate(templatePath: string) { class Watcher (line 16) | class Watcher { method constructor (line 23) | constructor(paths: string | string[], ignorePaths: string[]) { method initiateWatchOnPath (line 46) | initiateWatchOnPath(path: string, changeCallback: any, errorCallback: ... method watch (line 56) | async watch(changeCallback: any, errorCallback: any) { method fileChanged (line 71) | fileChanged(listenerPath: string, changedPath: string, eventType: stri... method convertEventType (line 96) | convertEventType(currentEventType: string) { method getAllNonExistingPaths (line 123) | getAllNonExistingPaths() { method closeWatchers (line 137) | closeWatchers() { method closeWatcher (line 149) | closeWatcher(path: string) { function runWatchMode (line 163) | async function runWatchMode( function watcherHandler (line 209) | function watcherHandler( FILE: src/utils/proxy.ts function applyProxyToPath (line 22) | function applyProxyToPath( function buildProxyUrl (line 46) | function buildProxyUrl( FILE: src/utils/retrieve-language.ts function retrieveLangauge (line 1) | function retrieveLangauge(content: string): 'json' | 'yaml' { FILE: src/utils/scoreCalculator.ts function calculateScore (line 3) | async function calculateScore( FILE: src/utils/temp-dir.ts function createTempDirectory (line 8) | function createTempDirectory() { function removeTempDirectory (line 12) | async function removeTempDirectory(tmpDir: string) { FILE: src/utils/validation.ts function validateFilePath (line 13) | function validateFilePath( function validateEnum (line 34) | function validateEnum( function validatePort (line 61) | function validatePort( function validateUrl (line 91) | function validateUrl( function validateNonEmptyString (line 120) | function validateNonEmptyString( function validateVersion (line 140) | function validateVersion( function isDefined (line 169) | function isDefined(value: T | null | undefined): value is T { function isNonEmptyArray (line 179) | function isNonEmptyArray(value: T[] | null | undefined): value is [T,... FILE: test/helpers/index.ts constant ASYNCAPI_FILE_PATH (line 10) | const ASYNCAPI_FILE_PATH = path.resolve(process.cwd(), 'specification.ya... constant SERVER_DIRECTORY (line 11) | const SERVER_DIRECTORY= path.join(__dirname, '../fixtures/dummyspec'); constant PROJECT_DIRECTORY_PATH (line 12) | const PROJECT_DIRECTORY_PATH = path.join(process.cwd(), 'test-project'); class ContextTestingHelper (line 16) | class ContextTestingHelper { method constructor (line 18) | constructor() { method context (line 31) | get context(): IContextFile { method createDummyContextFile (line 35) | createDummyContextFile(): void { method createDummyContextFileWrong (line 39) | createDummyContextFileWrong(data: string): void { method deleteDummyContextFile (line 43) | deleteDummyContextFile(): void { method unsetCurrentContext (line 49) | unsetCurrentContext(): void { method setCurrentContext (line 53) | setCurrentContext(context: string): void { method getPath (line 57) | getPath(key: string): string | undefined { method createSpecFileAtWorkingDir (line 61) | createSpecFileAtWorkingDir(): void { method deleteSpecFileAtWorkingDir (line 65) | deleteSpecFileAtWorkingDir(): void { method createDummyProjectDirectory (line 69) | createDummyProjectDirectory(): void { method deleteDummyProjectDirectory (line 73) | deleteDummyProjectDirectory(): void { function fileCleanup (line 78) | function fileCleanup(filepath: string) { function testStudio (line 82) | async function testStudio(){ function testPreview (line 98) | async function testPreview(){ function createMockServer (line 116) | function createMockServer (port = 8080) { function stopMockServer (line 138) | function stopMockServer() { function closeStudioServer (line 142) | async function closeStudioServer(port = 3210): Promise { function getContentType (line 155) | function getContentType(filePath:string):string { FILE: test/integration/bundle/bundle.test.ts function validateGeneratedSpec (line 8) | function validateGeneratedSpec(filePath: string, spec: string) { FILE: test/integration/generate/client.test.ts function cleanup (line 5) | function cleanup(filepath: string) { FILE: test/integration/generate/fromTemplate.test.ts function cleanup (line 16) | function cleanup(filepath: string) { FILE: test/jest.setup.ts type Global (line 6) | interface Global { FILE: test/unit/controllers/setup.test.ts type Request (line 4) | interface Request extends Express.Request {