Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit c6944f2

Browse files
authored
fix: ajv import broken (#123)
* fix: ajv import broken * docs(changeset): fix: ajv import broken in CJS environments
1 parent 84e91c7 commit c6944f2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/new-mice-occur.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@scalar/openapi-parser': patch
3+
---
4+
5+
fix: ajv import broken in CJS environments

packages/openapi-parser/src/lib/Validator/Validator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Ajv04 from 'ajv-draft-04'
22
import addFormats from 'ajv-formats'
3-
import Ajv2020 from 'ajv/dist/2020'
3+
import Ajv2020 from 'ajv/dist/2020.js'
44

55
import {
66
ERRORS,

0 commit comments

Comments
 (0)