Skip to content

Commit 5fe2d1a

Browse files
committed
correct readme for usage
1 parent 0658143 commit 5fe2d1a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ To run:
7777

7878
```
7979
const jsonSchema = require('simple.json.schema')
80-
const Convertor = require('index')
80+
const ConvertorFactory = require('index')
8181
82-
const complexConvertor = new Convertor(complexOneOfSchema)
83-
const components = complexConvertor.convert()
82+
const convertedSchema = ConvertorFactory.convert(jsonSchema)
8483
```

0 commit comments

Comments
 (0)