Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

gallofeliz/json-schema-typescript-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

import * as refParser from 'json-schema-ref-parser'
import JsonSchemaTypescriptResolver from 'json-schema-typescript-resolver'

refParser.bundle({
    $ref: 'src/users.ts#/definitions/User'
}, { resolve: { ts: new JsonSchemaTypescriptResolver }})

// Or alias
refParser.bundle({
    $ref: '@/users.ts#/definitions/User'
}, { resolve: { ts: new JsonSchemaTypescriptResolver }})

See Options in src/index.ts

About

Typescript resolver for json-schema

Resources

License

Stars

Watchers

Forks

Packages

No packages published