New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include support for JSON schema #16
Labels
Comments
I think this would be interesting to add and implement |
Just adding on to the discussion .. for folks who are using Typscript / Flow: const myStore = JSON.parse(store) as some_interface_I_defined I think it should be the user's responsibility to validate that a value that's going into the store is the correct format though. |
sindresorhus
changed the title
Include support for JSON schema?
Include support for JSON schema
Jan 16, 2019
@issuehuntfest has funded $100.00 to this issue. See it on IssueHunt |
sindresorhus
added a commit
to sindresorhus/conf
that referenced
this issue
Apr 2, 2019
Fixes sindresorhus/electron-store#16 Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
@sindresorhus has rewarded $90.00 to @yaodingyd. See it on IssueHunt
|
issuehunt-oss
bot
added
the
🎁 Rewarded on Issuehunt
This issue has been rewarded on Issuehunt
label
May 10, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Can be useful to ensure you only set the correct types in your config, and could validate if the config file is manually edited by the user.
https://github.com/epoberezkin/ajv looks like the best one.
Thoughts? Would you use this?
Note: This should be implemented in
conf
first.The text was updated successfully, but these errors were encountered: