Skip to content

Commit e08ef29

Browse files
committed
Fix incorrect import in README for enabling format validation
1 parent 8c8cb57 commit e08ef29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ use `@hyperjump/json-schema/formats-lite` instead to leave out support for those
144144
formats.
145145

146146
```javascript
147-
import { registerSchema, validate } from "@hyperjump/json-schema/draft-2020-12";
148-
import { setShouldValidateFormat } from "@hyperjump/json-schema/formats";
147+
import { registerSchema, setShouldValidateFormat, validate } from "@hyperjump/json-schema/draft-2020-12";
148+
import "@hyperjump/json-schema/formats";
149149

150150
const schemaUri = "https://example.com/number";
151151
registerSchema({

0 commit comments

Comments
 (0)