jamesmessinger / json-schema-lib Goto Github PK
View Code? Open in Web Editor NEWExtensible JSON Schema library with support for multi-file schemas using $ref
License: MIT License
Extensible JSON Schema library with support for multi-file schemas using $ref
License: MIT License
Hello! ๐
I know that this library is still in pre-alpha and very much not ready for production, but I've been looking into using it anyway because my code is currently reliant on using deasync
to force json-schema-ref-parser
to behave in a synchronous manner, and deasync
is causing segfaults (!) so I need to migrate my code to something else as soon as I can.
I specifically only need synchronous parsing of local files. I don't use any remote schemas that require HTTP requests.
During my testing of json-schema-lib
, I noticed FileSystemPlugin.js#L150, which calls decodeURIComponent
on the file path. Was this meant to be encodeURIComponent
, instead of decode
?
I have some files such as schema%3Astate.json
which are already URI encoded. But, when passing these paths to json-schema-lib
, the paths gets decoded such that they are now pointing to files that don't exist. For example: schema%3Astate.json
becomes schema:state.json
, which is not a valid Windows filename.
If this is indeed unintended behavior, I would be happy to open a small pull request to change it.
Thanks for all your work on both this and the original json-schema-ref-parser
!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.