Hacker News new | ask | show | jobs
by code-is-code 1852 days ago
I also did this some year ago. A big learning was that you should define the allowed input types in the logic object.

https://github.com/pubkey/secure-json-logic#readme

1 comments

Thanks for the input. I submitted this because I’m looking around for ways to define a matrix for accepting a given “credential” within the schema of the credential itself — a bit hard to explain without getting into it. This is the best model I’ve found so far to do what I’m trying to do, but it’s still very imperfect.