json-schema-ref-parser
swagger-parser
json-schema-ref-parser | swagger-parser | |
---|---|---|
3 | 2 | |
1,043 | 1,155 | |
0.1% | 0.3% | |
8.2 | 7.7 | |
15 days ago | 3 months ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
json-schema-ref-parser
-
Show HN: Parse, Resolve, and Dereference OpenAPI Schema $Ref Pointers for LLM's
The standard way of dealing with OpenAPI specs in JS is json-schema-ref-parser[1], but it's no longer being actively maintained (strongly recommend reading Phil Sturgeon's post on that[2]). Therefore, we made this little package showing an alternative way of parsing an OpenAPI spec in JS.
OpenAPI specs are somewhat more valuable now with LLMs, so this hopefully useful to some folks out there struggling with json-schema-ref-parser.
[1]: https://github.com/APIDevTools/json-schema-ref-parser
[2]: https://philsturgeon.com/bundling-openapi-with-javascript/
- Library with 2M weekly downloads needs maintainer
-
Unlocking API Interoperability: Converting OpenAPI to TypeScript JSON Schema
Resolve external/remote $refs and dereference them with @apidevtools/json-schema-ref-parser (resolving $ref's)
swagger-parser
What are some alternatives?
openapi-ts-json-schema - OpenAPI ➡️ TypeScript JSON Schema generator.
node-validator - String validation [Moved to: https://github.com/validatorjs/validator.js]
parser-js - AsyncAPI parser for Javascript (browser-compatible too).
fluent-json-validator - An easy-to-use, expressive, and composable JSON object validator, with a fluent builder pattern interface!
jsonschema - A node package based on jsonschema-rs for performing JSON schema validation
open-api - A Monorepo of various packages to power OpenAPI in node