Skip to content

Commit

Permalink
chore: added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jun 14, 2023
1 parent 423d653 commit 3a39ad5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function validate(schema, options, configuration) {
* @returns {Array<SchemaUtilErrorObject>}
*/
function validateObject(schema, options) {
// Not need to cache, because `ajv@8` has built-in cache
const compiledSchema = getAjv().compile(schema);
const valid = compiledSchema(options);

Expand Down

0 comments on commit 3a39ad5

Please sign in to comment.