APIDevTools / json-schema-ref-parser

Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers
https://apitools.dev/json-schema-ref-parser
MIT License
942 stars 226 forks source link

Many missing exported types since #300 #307

Closed mgabeler-lee-6rs closed 5 months ago

mgabeler-lee-6rs commented 1 year ago

The rewrite in #300 caused many previously-exported types to no longer be exported. These types are important when trying to work with customizations to the library.

The two types that are most relevant to my work are JSONSchema and FileInfo. JSONSchema is important for naming inputs and outputs to several $RefParser methods, and FileInfo is needed to safely write custom parser plugins as exposed by $RefParser

bcherny commented 1 year ago

+1

There also seems to be a bunch of type errors. To repro, create a new directory, npm init, then npm install json-schema-ref-parser.

jonluca commented 5 months ago

Sorry about that, we export more types now in v11.2.2 and v11.2.4