Skip to content

Commit 520a89b

Browse files
committed
readme
1 parent 750b023 commit 520a89b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Requires NodeJS v10 or greater.
2424

2525
Here's a small example to get the idea:
2626

27-
```js
28-
const convert = require('@openapi-contrib/json-schema-to-openapi-schema');
27+
```ts
28+
import { convert } from '@openapi-contrib/json-schema-to-openapi-schema';
2929

3030
const schema = {
3131
$schema: 'http://json-schema.org/draft-04/schema#',

test/clone_schema.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import convert from '../src';
1+
import { convert } from '../src';
22

33
it('cloning schema by default', async ({ expect }) => {
44
const schema = {

0 commit comments

Comments
 (0)