Skip to content

Commit

Permalink
feat(rulesets): fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Sep 26, 2022
1 parent 93cfd80 commit 2d5cfb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function getSchema(formats: Set<Format>): Record<string, unknown> | void {
}
}

// For optimizing the retrieving/creation of AJV's validation funcition for a given AsyncAPI version.
// For optimizing the retrieving/creation of AJV's validation function for a given AsyncAPI version.
// Currently each validation run creates a separate `documentInventory` (needed by `schemaFn`), which serves as an identifier for the weakMap's element of available AJV's validation functions.
// This variable will always be the same for each validation run, regardless of the number of runs or Spectral instances.
const CONST_DOCUMENT_INVENTORY: RulesetFunctionContext['documentInventory'] =
Expand Down

0 comments on commit 2d5cfb2

Please sign in to comment.