Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSaini101 committed Jun 6, 2024
1 parent 4260d66 commit 0c3d245
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions src/commands/validate.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
import { Flags, Args } from '@oclif/core';
import Command from '../base';
import { calculateScore } from '../utils/scoreCalculator';
import { validate, validationFlags, ValidateOptions, ValidationStatus, parse } from '../parser';
import { load } from '../models/SpecificationFile';
import { specWatcher } from '../globals';
import { watchFlag } from '../flags';

import { Args } from '@oclif/core';
import Command from '../core/base';
import { validate, ValidateOptions, ValidationStatus } from '../core/parser';
import { load } from '../core/models/SpecificationFile';
import { specWatcher } from '../core/globals';
import { validateFlags } from '../core/flags/validate.flags';
import { calculateScore } from 'core/utils/scoreCalculator';
import { parse } from 'core/parser';
export default class Validate extends Command {
static description = 'validate asyncapi file';

static flags = {
help: Flags.help({ char: 'h' }),
watch: watchFlag(),
...validationFlags(),
score: Flags.boolean({
description: 'Compute the score of the AsyncAPI document, scoring is based on whether the document description, License, server and channels.',
required: false,
default: false
}),
};
static flags = validateFlags();

static args = {
'spec-file': Args.string({ description: 'spec path, url, or context-name', required: false }),
'spec-file': Args.string({description: 'spec path, url, or context-name', required: false}),
};

async run() {
Expand Down

0 comments on commit 0c3d245

Please sign in to comment.