Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cli/src/command-helpers/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export async function runValidate(options: ValidateOptions) {
const schemaDirectory = await buildSchemaDirectory(docLoader, options.verbose);
await schemaDirectory.loadSchemas();

let architecture: object | undefined;
let pattern: object | undefined;
let timeline: object | undefined;
let architecture: object | undefined = undefined;
let pattern: object | undefined = undefined;
let timeline: object | undefined = undefined;

if (options.timelinePath) {
const result = await loadTimeline(
Expand Down
6 changes: 3 additions & 3 deletions shared/src/commands/validate/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ async function runSpectralValidations(

/**
* Validation - with simple input parameters and output validation outcomes.
* @param architecture The architecture as a JS object
* @param patternOrSchema The pattern (or schema) as a JS object
* @param timeline The timeline as a JS object
* @param architecture The architecture as a JS object, or undefined if not provided
* @param patternOrSchema The pattern (or schema) as a JS object, or undefined if not provided
* @param timeline The timeline as a JS object, or undefined if not provided
* @param schemaDirectory SchemaDirectory instance for schema resolution
* @param debug Whether to log at debug level
* @returns Validation report
Expand Down
Loading